public class JavaFileAccess extends TextFileAccess
Modifier and Type | Class and Description |
---|---|
protected static class |
JavaFileAccess.JavaTypeAwareStringConcatenation |
Modifier and Type | Field and Description |
---|---|
protected CodeConfig |
codeConfig |
static int |
DONT_IMPORT_NESTED_TYPES
Set this value for the 'importNestedTypeThreshold' property to disable importing of nested types
|
protected java.util.Map<java.lang.String,java.lang.String> |
imports |
static java.util.Set<java.lang.String> |
JAVA_KEYWORDS
A list of keywords in the Java language.
|
protected TypeReference |
javaType |
internalContents
Modifier | Constructor and Description |
---|---|
protected |
JavaFileAccess(TypeReference typeRef,
CodeConfig codeConfig) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
appendSemicolons() |
java.lang.CharSequence |
getContent() |
protected java.lang.String |
getFileExtension() |
int |
getImportNestedTypeThreshold() |
protected java.lang.CharSequence |
getInternalContent() |
java.lang.String |
importType(TypeReference typeRef) |
boolean |
isMarkedAsGenerated() |
void |
setContent(StringConcatenationClient javaContent) |
void |
setImportNestedTypeThreshold(int importNestedTypeThreshold) |
void |
setMarkedAsGenerated(boolean markedAsGenerated) |
void |
setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
getPath, setPath, writeTo
public static final java.util.Set<java.lang.String> JAVA_KEYWORDS
public static final int DONT_IMPORT_NESTED_TYPES
protected final java.util.Map<java.lang.String,java.lang.String> imports
protected final TypeReference javaType
protected final CodeConfig codeConfig
protected JavaFileAccess(TypeReference typeRef, CodeConfig codeConfig)
protected java.lang.String getFileExtension()
public java.lang.String importType(TypeReference typeRef)
public void setContent(StringConcatenationClient javaContent)
setContent
in class TextFileAccess
protected boolean appendSemicolons()
public java.lang.CharSequence getContent()
getContent
in class TextFileAccess
protected java.lang.CharSequence getInternalContent()
@Pure public int getImportNestedTypeThreshold()
public void setImportNestedTypeThreshold(int importNestedTypeThreshold)
@Pure public boolean isMarkedAsGenerated()
public void setMarkedAsGenerated(boolean markedAsGenerated)
public void setResourceSet(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)