public class TopLevelClass extends InnerClass implements CompilationUnit
| Constructor and Description |
|---|
TopLevelClass(FullyQualifiedJavaType type) |
TopLevelClass(String typeName) |
| 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 |
addImportedType(String importedType) |
void |
addImportedTypes(Set<FullyQualifiedJavaType> importedTypes) |
void |
addStaticImport(String staticImport) |
void |
addStaticImports(Set<String> staticImports) |
List<String> |
getFileCommentLines() |
Set<FullyQualifiedJavaType> |
getImportedTypes() |
Set<String> |
getStaticImports() |
addInitializationBlock, addTypeParameter, getInitializationBlocks, getSuperClass, getTypeParameters, isAbstract, isFinal, setAbstract, setFinal, setSuperClass, setSuperClassaddField, 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 TopLevelClass(FullyQualifiedJavaType type)
public TopLevelClass(String typeName)
public Set<FullyQualifiedJavaType> getImportedTypes()
getImportedTypes in interface CompilationUnitpublic void addImportedType(String importedType)
public 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.