public class Interface extends JavaElement implements CompilationUnit
| 构造器和说明 |
|---|
Interface(FullyQualifiedJavaType type)
Instantiates a new interface.
|
Interface(String type)
Instantiates a new interface.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
Adds the imported types.
|
void |
addMethod(Method method)
Adds the method.
|
void |
addStaticImport(String staticImport)
Adds the static import.
|
void |
addStaticImports(Set<String> staticImports)
Adds the static imports.
|
void |
addSuperInterface(FullyQualifiedJavaType superInterface)
Adds the super interface.
|
List<String> |
getFileCommentLines()
Gets the file comment lines.
|
String |
getFormattedContent()
Gets the formatted content.
|
Set<FullyQualifiedJavaType> |
getImportedTypes()
Gets the imported types.
|
List<Method> |
getMethods()
Gets the methods.
|
Set<String> |
getStaticImports()
Gets the static imports.
|
FullyQualifiedJavaType |
getSuperClass()
Gets the super class.
|
Set<FullyQualifiedJavaType> |
getSuperInterfaceTypes()
Gets the super interface types.
|
FullyQualifiedJavaType |
getType()
Gets the type.
|
boolean |
isJavaEnumeration()
Checks if is java enumeration.
|
boolean |
isJavaInterface()
Checks if is java interface.
|
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibilitypublic Interface(FullyQualifiedJavaType type)
type - the typepublic Interface(String type)
type - the typepublic Set<FullyQualifiedJavaType> getImportedTypes()
CompilationUnitgetImportedTypes 在接口中 CompilationUnitpublic void addImportedType(FullyQualifiedJavaType importedType)
CompilationUnitaddImportedType 在接口中 CompilationUnitimportedType - the imported typepublic String getFormattedContent()
CompilationUnitgetFormattedContent 在接口中 CompilationUnitpublic void addSuperInterface(FullyQualifiedJavaType superInterface)
superInterface - the super interfacepublic void addMethod(Method method)
method - the methodpublic FullyQualifiedJavaType getType()
getType 在接口中 CompilationUnitpublic FullyQualifiedJavaType getSuperClass()
CompilationUnitgetSuperClass 在接口中 CompilationUnitpublic Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
CompilationUnitgetSuperInterfaceTypes 在接口中 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.