org.mybatis.generator.api.dom.java
Interface CompilationUnit
- All Known Implementing Classes:
- Interface, TopLevelClass, TopLevelEnumeration
public interface CompilationUnit
This interface describes methods common to all Java compilation units (Java
classes, interfaces, and enums).
- Author:
- Jeff Butler
getFormattedContent
String getFormattedContent()
getImportedTypes
Set<FullyQualifiedJavaType> getImportedTypes()
getStaticImports
Set<String> getStaticImports()
getSuperClass
FullyQualifiedJavaType getSuperClass()
isJavaInterface
boolean isJavaInterface()
isJavaEnumeration
boolean isJavaEnumeration()
getSuperInterfaceTypes
Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
getType
FullyQualifiedJavaType getType()
addImportedType
void addImportedType(FullyQualifiedJavaType importedType)
addImportedTypes
void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
addStaticImport
void addStaticImport(String staticImport)
addStaticImports
void addStaticImports(Set<String> staticImports)
addFileCommentLine
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.
Note that in the Eclipse plugin, file comments will not be merged.
- Parameters:
commentLine
-
getFileCommentLines
List<String> getFileCommentLines()
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.