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, isJavaInterface
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibility
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSuperClass, getSuperInterfaceTypes, getType, isJavaEnumeration, isJavaInterface
public Interface(FullyQualifiedJavaType type)
public Interface(String type)
public Set<FullyQualifiedJavaType> getImportedTypes()
getImportedTypes
in interface CompilationUnit
public void addImportedType(FullyQualifiedJavaType importedType)
addImportedType
in interface CompilationUnit
public String getFormattedContent()
getFormattedContent
in interface CompilationUnit
public String getFormattedContent(int indentLevel, CompilationUnit compilationUnit)
InnerInterface
getFormattedContent
in class InnerInterface
indentLevel
- the indent levelcompilationUnit
- the compilation unitpublic void addFileCommentLine(String commentLine)
CompilationUnit
Note that in the Eclipse plugin, file comments will not be merged.
addFileCommentLine
in interface CompilationUnit
commentLine
- the comment linepublic List<String> getFileCommentLines()
getFileCommentLines
in interface CompilationUnit
public void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
addImportedTypes
in interface CompilationUnit
public Set<String> getStaticImports()
getStaticImports
in interface CompilationUnit
public void addStaticImport(String staticImport)
addStaticImport
in interface CompilationUnit
public void addStaticImports(Set<String> staticImports)
addStaticImports
in interface CompilationUnit
Copyright © 2006–2018 MyBatis.org. All rights reserved.