org.springframework.roo.classpath.javaparser
Interface CompilationUnitServices

All Known Implementing Classes:
JavaParserMutableClassOrInterfaceTypeDetails

public interface CompilationUnitServices

An interface that enables Java Parser types to request the compilation unit to be written to disk, as well as find out relevant information about a compilation unit.

This is generally useful if a Java Parser type internally stores an Expression or similar and may support modifying its on-disk representation.

Since:
1.0
Author:
Ben Alex

Method Summary
 void flush()
          Forces the implementation to flush any changes.
 org.springframework.roo.model.JavaPackage getCompilationUnitPackage()
           
 org.springframework.roo.model.JavaType getEnclosingTypeName()
           
 List<japa.parser.ast.ImportDeclaration> getImports()
           
 List<japa.parser.ast.body.TypeDeclaration> getInnerTypes()
           
 

Method Detail

getImports

List<japa.parser.ast.ImportDeclaration> getImports()

getCompilationUnitPackage

org.springframework.roo.model.JavaPackage getCompilationUnitPackage()

getEnclosingTypeName

org.springframework.roo.model.JavaType getEnclosingTypeName()
Returns:
the enclosing type (never null)

getInnerTypes

List<japa.parser.ast.body.TypeDeclaration> getInnerTypes()
Returns:
the names of each inner type and the enclosing type (never null but may be empty)

flush

void flush()
Forces the implementation to flush any changes.



Copyright © 2009-2010 VMware, Inc. All Rights Reserved.