public interface

CompilationUnit

org.mybatis.generator.api.dom.java.CompilationUnit
Known Indirect Subclasses

Class Overview

This interface describes methods common to all Java compilation units (Java classes, interfaces, and enums).

Summary

Public Methods
abstract 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.
abstract void addImportedType(FullyQualifiedJavaType importedType)
abstract void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
abstract void addStaticImport(String staticImport)
abstract void addStaticImports(Set<String> staticImports)
abstract List<String> getFileCommentLines()
abstract String getFormattedContent()
abstract Set<FullyQualifiedJavaType> getImportedTypes()
abstract Set<String> getStaticImports()
abstract FullyQualifiedJavaType getSuperClass()
abstract Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
abstract FullyQualifiedJavaType getType()
abstract boolean isJavaEnumeration()
abstract boolean isJavaInterface()

Public Methods

public abstract 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.

public abstract void addImportedType (FullyQualifiedJavaType importedType)

public abstract void addImportedTypes (Set<FullyQualifiedJavaType> importedTypes)

public abstract void addStaticImport (String staticImport)

public abstract void addStaticImports (Set<String> staticImports)

public abstract List<String> getFileCommentLines ()

public abstract String getFormattedContent ()

public abstract Set<FullyQualifiedJavaType> getImportedTypes ()

public abstract Set<String> getStaticImports ()

public abstract FullyQualifiedJavaType getSuperClass ()

public abstract Set<FullyQualifiedJavaType> getSuperInterfaceTypes ()

public abstract FullyQualifiedJavaType getType ()

public abstract boolean isJavaEnumeration ()

public abstract boolean isJavaInterface ()