public interface CompilationUnit
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(CompilationUnitVisitor<R> visitor) |
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() |
Set<FullyQualifiedJavaType> |
getImportedTypes() |
Set<String> |
getStaticImports() |
FullyQualifiedJavaType |
getType() |
Set<FullyQualifiedJavaType> getImportedTypes()
FullyQualifiedJavaType getType()
void addImportedType(FullyQualifiedJavaType importedType)
void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
void addStaticImport(String staticImport)
void addFileCommentLine(String commentLine)
Note that in the Eclipse plugin, file comments will not be merged.
commentLine
- the comment line<R> R accept(CompilationUnitVisitor<R> visitor)
Copyright © 2006–2022 MyBatis.org. All rights reserved.