public class TopLevelClass extends InnerClass implements CompilationUnit
| 构造器和说明 |
|---|
TopLevelClass(FullyQualifiedJavaType type)
Instantiates a new top level class.
|
TopLevelClass(String typeName)
Instantiates a new top level class.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
Adds the imported type.
|
void |
addImportedType(String importedType)
Adds the imported type.
|
void |
addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
Adds the imported types.
|
void |
addStaticImport(String staticImport)
Adds the static import.
|
void |
addStaticImports(Set<String> staticImports)
Adds the static imports.
|
List<String> |
getFileCommentLines()
Gets the file comment lines.
|
String |
getFormattedContent()
Gets the formatted content.
|
Set<FullyQualifiedJavaType> |
getImportedTypes()
Gets the imported types.
|
Set<String> |
getStaticImports()
Gets the static imports.
|
boolean |
isJavaEnumeration()
Checks if is java enumeration.
|
boolean |
isJavaInterface()
Checks if is java interface.
|
addField, addInitializationBlock, addInnerClass, addInnerEnum, addMethod, addSuperInterface, getFields, getFormattedContent, getInitializationBlocks, getInnerClasses, getInnerEnums, getMethods, getSuperClass, getSuperInterfaceTypes, getType, isAbstract, setAbstract, setSuperClass, setSuperClassaddAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibilityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSuperClass, getSuperInterfaceTypes, getTypepublic TopLevelClass(FullyQualifiedJavaType type)
type - the typepublic TopLevelClass(String typeName)
typeName - the type namepublic Set<FullyQualifiedJavaType> getImportedTypes()
getImportedTypes 在接口中 CompilationUnitpublic void addImportedType(String importedType)
importedType - the imported typepublic void addImportedType(FullyQualifiedJavaType importedType)
CompilationUnitaddImportedType 在接口中 CompilationUnitimportedType - the imported typepublic String getFormattedContent()
CompilationUnitgetFormattedContent 在接口中 CompilationUnitpublic boolean isJavaInterface()
CompilationUnitisJavaInterface 在接口中 CompilationUnitpublic boolean isJavaEnumeration()
CompilationUnitisJavaEnumeration 在接口中 CompilationUnitpublic void addFileCommentLine(String commentLine)
CompilationUnitaddFileCommentLine 在接口中 CompilationUnitcommentLine - the comment linepublic List<String> getFileCommentLines()
CompilationUnitgetFileCommentLines 在接口中 CompilationUnitpublic void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
CompilationUnitaddImportedTypes 在接口中 CompilationUnitimportedTypes - the imported typespublic Set<String> getStaticImports()
CompilationUnitgetStaticImports 在接口中 CompilationUnitpublic void addStaticImport(String staticImport)
CompilationUnitaddStaticImport 在接口中 CompilationUnitstaticImport - the static importpublic void addStaticImports(Set<String> staticImports)
CompilationUnitaddStaticImports 在接口中 CompilationUnitstaticImports - the static importsCopyright © 2006–2016 MyBatis.org. All rights reserved.