public interface CompilationUnit
| 限定符和类型 | 方法和说明 |
|---|---|
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.util.Set<FullyQualifiedJavaType> |
getImportedTypes()
Gets the imported types.
|
java.util.Set<java.lang.String> |
getStaticImports()
Gets the static imports.
|
FullyQualifiedJavaType |
getSuperClass()
Gets the super class.
|
java.util.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.
|
java.lang.String getFormattedContent()
java.util.Set<FullyQualifiedJavaType> getImportedTypes()
java.util.Set<java.lang.String> getStaticImports()
FullyQualifiedJavaType getSuperClass()
boolean isJavaInterface()
boolean isJavaEnumeration()
java.util.Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
FullyQualifiedJavaType getType()
void addImportedType(FullyQualifiedJavaType importedType)
importedType - the imported typevoid addImportedTypes(java.util.Set<FullyQualifiedJavaType> importedTypes)
importedTypes - the imported typesvoid addStaticImport(java.lang.String staticImport)
staticImport - the static importvoid addStaticImports(java.util.Set<java.lang.String> staticImports)
staticImports - the static importsvoid addFileCommentLine(java.lang.String commentLine)
commentLine - the comment linejava.util.List<java.lang.String> getFileCommentLines()
Copyright © 2018. All Rights Reserved.