public class Interface extends InnerInterface implements CompilationUnit
| 构造器和说明 |
|---|
Interface(FullyQualifiedJavaType type)
Instantiates a new interface.
|
Interface(java.lang.String type)
Instantiates a new interface.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFileCommentLine(java.lang.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(java.util.Set<FullyQualifiedJavaType> importedTypes)
Adds the imported types.
|
void |
addStaticImport(java.lang.String staticImport)
Adds the static import.
|
void |
addStaticImports(java.util.Set<java.lang.String> staticImports)
Adds the static imports.
|
java.util.List<java.lang.String> |
getFileCommentLines()
Gets the file comment lines.
|
java.lang.String |
getFormattedContent()
Gets the formatted content.
|
java.lang.String |
getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
Gets the formatted content.
|
java.util.Set<FullyQualifiedJavaType> |
getImportedTypes()
Gets the imported types.
|
java.util.Set<java.lang.String> |
getStaticImports()
Gets the static imports.
|
addField, addInnerInterfaces, addMethod, addSuperInterface, getFields, getInnerInterfaces, getMethods, getSuperClass, getSuperInterfaceTypes, getType, isJavaEnumeration, isJavaInterfaceaddAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibilityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSuperClass, getSuperInterfaceTypes, getType, isJavaEnumeration, isJavaInterfacepublic Interface(FullyQualifiedJavaType type)
type - the typepublic Interface(java.lang.String type)
type - the typepublic java.util.Set<FullyQualifiedJavaType> getImportedTypes()
CompilationUnitgetImportedTypes 在接口中 CompilationUnitpublic void addImportedType(FullyQualifiedJavaType importedType)
CompilationUnitaddImportedType 在接口中 CompilationUnitimportedType - the imported typepublic java.lang.String getFormattedContent()
CompilationUnitgetFormattedContent 在接口中 CompilationUnitpublic java.lang.String getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
getFormattedContent 在类中 InnerInterfaceindentLevel - the indent levelcompilationUnit - the compilation unitpublic void addFileCommentLine(java.lang.String commentLine)
CompilationUnitaddFileCommentLine 在接口中 CompilationUnitcommentLine - the comment linepublic java.util.List<java.lang.String> getFileCommentLines()
CompilationUnitgetFileCommentLines 在接口中 CompilationUnitpublic void addImportedTypes(java.util.Set<FullyQualifiedJavaType> importedTypes)
CompilationUnitaddImportedTypes 在接口中 CompilationUnitimportedTypes - the imported typespublic java.util.Set<java.lang.String> getStaticImports()
CompilationUnitgetStaticImports 在接口中 CompilationUnitpublic void addStaticImport(java.lang.String staticImport)
CompilationUnitaddStaticImport 在接口中 CompilationUnitstaticImport - the static importpublic void addStaticImports(java.util.Set<java.lang.String> staticImports)
CompilationUnitaddStaticImports 在接口中 CompilationUnitstaticImports - the static importsCopyright © 2018. All Rights Reserved.