public class TopLevelEnumeration extends InnerEnum implements CompilationUnit
| Constructor and Description |
|---|
TopLevelEnumeration(FullyQualifiedJavaType type) |
TopLevelEnumeration(String type) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(CompilationUnitVisitor<R> visitor) |
void |
addFileCommentLine(String commentLine)
Comments will be written at the top of the file as is, we do not append any start or end comment characters.
|
void |
addImportedType(FullyQualifiedJavaType importedType) |
void |
addImportedTypes(Set<FullyQualifiedJavaType> importedTypes) |
void |
addStaticImport(String staticImport) |
void |
addStaticImports(Set<String> staticImports) |
List<String> |
getFileCommentLines() |
Set<FullyQualifiedJavaType> |
getImportedTypes() |
Set<String> |
getStaticImports() |
addEnumConstant, addInitializationBlock, getEnumConstants, getInitializationBlocksaddField, addInnerClass, addInnerEnum, addInnerInterface, addMethod, addSuperInterface, getFields, getInnerClasses, getInnerEnums, getInnerInterfaces, getMethods, getSuperInterfaceTypes, getTypeaddAnnotation, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isStatic, setStatic, setVisibilityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic TopLevelEnumeration(FullyQualifiedJavaType type)
public TopLevelEnumeration(String type)
public Set<FullyQualifiedJavaType> getImportedTypes()
getImportedTypes in interface CompilationUnitpublic void addImportedType(FullyQualifiedJavaType importedType)
addImportedType in interface CompilationUnitpublic void addFileCommentLine(String commentLine)
CompilationUnitNote that in the Eclipse plugin, file comments will not be merged.
addFileCommentLine in interface CompilationUnitcommentLine - the comment linepublic List<String> getFileCommentLines()
getFileCommentLines in interface CompilationUnitpublic void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
addImportedTypes in interface CompilationUnitpublic Set<String> getStaticImports()
getStaticImports in interface CompilationUnitpublic void addStaticImport(String staticImport)
addStaticImport in interface CompilationUnitpublic void addStaticImports(Set<String> staticImports)
addStaticImports in interface CompilationUnitpublic <R> R accept(CompilationUnitVisitor<R> visitor)
accept in interface CompilationUnitCopyright © 2006–2025 MyBatis.org. All rights reserved.