public class Interface extends InnerInterface implements CompilationUnit
| Constructor and Description |
|---|
Interface(FullyQualifiedJavaType type) |
Interface(String type) |
| Modifier and Type | Method and Description |
|---|---|
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 |
addImportedTypes(Set<FullyQualifiedJavaType> importedTypes) |
void |
addStaticImport(String staticImport) |
void |
addStaticImports(Set<String> staticImports) |
List<String> |
getFileCommentLines() |
String |
getFormattedContent() |
String |
getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
Gets the formatted content.
|
Set<FullyQualifiedJavaType> |
getImportedTypes() |
Set<String> |
getStaticImports() |
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)
public Interface(String type)
public Set<FullyQualifiedJavaType> getImportedTypes()
getImportedTypes in interface CompilationUnitpublic void addImportedType(FullyQualifiedJavaType importedType)
addImportedType in interface CompilationUnitpublic String getFormattedContent()
getFormattedContent in interface CompilationUnitpublic String getFormattedContent(int indentLevel, CompilationUnit compilationUnit)
InnerInterfacegetFormattedContent in class InnerInterfaceindentLevel - the indent levelcompilationUnit - the compilation unitpublic 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 CompilationUnitCopyright © 2006–2017 MyBatis.org. All rights reserved.