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

java.lang.String getFormattedContent()

getImportedTypes

java.util.Set getImportedTypes()

getSuperClass

FullyQualifiedJavaType getSuperClass()

isJavaInterface

boolean isJavaInterface()

isJavaEnumeration

boolean isJavaEnumeration()

getSuperInterfaceTypes

java.util.Set getSuperInterfaceTypes()

getType

FullyQualifiedJavaType getType()

addImportedType

void addImportedType(FullyQualifiedJavaType importedType)

addFileCommentLine

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

java.util.List getFileCommentLines()