public class GeneratedJavaFileAccess extends JavaFileAccess
JavaFileAccess.JavaTypeAwareStringConcatenation
codeConfig, DONT_IMPORT_NESTED_TYPES, imports, JAVA_KEYWORDS, javaType
internalContents
Modifier | Constructor and Description |
---|---|
protected |
GeneratedJavaFileAccess(TypeReference typeRef,
CodeConfig codeConfig) |
Modifier and Type | Method and Description |
---|---|
java.util.List<IClassAnnotation> |
getAnnotations() |
java.lang.CharSequence |
getContent()
Prepends the addition of required imports of the employed annotations.
|
java.lang.CharSequence |
getInternalContent() |
boolean |
isMarkedAsGenerated() |
void |
setMarkedAsGenerated(boolean markedAsGenerated) |
void |
setTypeComment(StringConcatenationClient javaContent) |
appendSemicolons, getFileExtension, getImportNestedTypeThreshold, importType, setContent, setImportNestedTypeThreshold, setResourceSet
getPath, setPath, writeTo
protected GeneratedJavaFileAccess(TypeReference typeRef, CodeConfig codeConfig)
public boolean isMarkedAsGenerated()
isMarkedAsGenerated
in class JavaFileAccess
public void setMarkedAsGenerated(boolean markedAsGenerated)
setMarkedAsGenerated
in class JavaFileAccess
public void setTypeComment(StringConcatenationClient javaContent)
public java.lang.CharSequence getContent()
JavaFileAccess.JavaTypeAwareStringConcatenation
any optionally required imports are already processed and tracked in JavaFileAccess.imports
.getContent
in class JavaFileAccess
public java.lang.CharSequence getInternalContent()
getInternalContent
in class JavaFileAccess
@Pure public java.util.List<IClassAnnotation> getAnnotations()