org.apache.ibatis.abator.api.dom.java
Interface CompilationUnit

All Known Implementing Classes:
Interface, TopLevelClass, TopLevelEnumeration

public interface CompilationUnit

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

Author:
Jeff Butler

Method Summary
 void addFileCommentLine(java.lang.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)
           
 java.util.List getFileCommentLines()
           
 java.lang.String getFormattedContent()
           
 java.util.Set getImportedTypes()
           
 FullyQualifiedJavaType getSuperClass()
           
 java.util.Set getSuperInterfaceTypes()
           
 FullyQualifiedJavaType getType()
           
 boolean isJavaEnumeration()
           
 boolean isJavaInterface()
           
 

Method Detail

getFormattedContent

public java.lang.String getFormattedContent()

getImportedTypes

public java.util.Set getImportedTypes()

getSuperClass

public FullyQualifiedJavaType getSuperClass()

isJavaInterface

public boolean isJavaInterface()

isJavaEnumeration

public boolean isJavaEnumeration()

getSuperInterfaceTypes

public java.util.Set getSuperInterfaceTypes()

getType

public FullyQualifiedJavaType getType()

addImportedType

public void addImportedType(FullyQualifiedJavaType importedType)

addFileCommentLine

public void addFileCommentLine(java.lang.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

public java.util.List getFileCommentLines()