org.apache.beehive.controls.runtime.generator.apt
Class CheckerAnnotationProcessorEnvironmentImpl

Object
  extended by CheckerAnnotationProcessorEnvironmentImpl
All Implemented Interfaces:
AnnotationProcessorEnvironment

public final class CheckerAnnotationProcessorEnvironmentImpl
extends Object
implements AnnotationProcessorEnvironment

Wrapper for an AnnotationProcessorEnvironment instance. Keeps track of errors / warnings logged.


Constructor Summary
CheckerAnnotationProcessorEnvironmentImpl(Diagnostics aptDiagnostics)
           
 
Method Summary
 void addListener(AnnotationProcessorListener listener)
           
 Collection<Declaration> getDeclarationsAnnotatedWith(AnnotationTypeDeclaration typeDeclaration)
           
 Declarations getDeclarationUtils()
           
 int getErrorCount()
          Get the number of errors sent to the messager.
 Filer getFiler()
           
 Messager getMessager()
           
 Map<String,String> getOptions()
           
 PackageDeclaration getPackage(String string)
           
 Collection<TypeDeclaration> getSpecifiedTypeDeclarations()
           
 TypeDeclaration getTypeDeclaration(String string)
           
 Collection<TypeDeclaration> getTypeDeclarations()
           
 Types getTypeUtils()
           
 int getWarningCount()
          Get the number of warnings sent to the messager.
 void removeListener(AnnotationProcessorListener listener)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckerAnnotationProcessorEnvironmentImpl

public CheckerAnnotationProcessorEnvironmentImpl(Diagnostics aptDiagnostics)
Parameters:
aptDiagnostics -
Method Detail

getErrorCount

public int getErrorCount()
Get the number of errors sent to the messager.

Returns:
Number of errors.

getWarningCount

public int getWarningCount()
Get the number of warnings sent to the messager.

Returns:
Number of warnings.

getMessager

public Messager getMessager()
Specified by:
getMessager in interface AnnotationProcessorEnvironment

getFiler

public Filer getFiler()
Specified by:
getFiler in interface AnnotationProcessorEnvironment

getOptions

public Map<String,String> getOptions()
Specified by:
getOptions in interface AnnotationProcessorEnvironment

getSpecifiedTypeDeclarations

public Collection<TypeDeclaration> getSpecifiedTypeDeclarations()
Specified by:
getSpecifiedTypeDeclarations in interface AnnotationProcessorEnvironment

getPackage

public PackageDeclaration getPackage(String string)
Specified by:
getPackage in interface AnnotationProcessorEnvironment

getTypeDeclaration

public TypeDeclaration getTypeDeclaration(String string)
Specified by:
getTypeDeclaration in interface AnnotationProcessorEnvironment

getTypeDeclarations

public Collection<TypeDeclaration> getTypeDeclarations()
Specified by:
getTypeDeclarations in interface AnnotationProcessorEnvironment

getDeclarationUtils

public Declarations getDeclarationUtils()
Specified by:
getDeclarationUtils in interface AnnotationProcessorEnvironment

getTypeUtils

public Types getTypeUtils()
Specified by:
getTypeUtils in interface AnnotationProcessorEnvironment

addListener

public void addListener(AnnotationProcessorListener listener)
Specified by:
addListener in interface AnnotationProcessorEnvironment

removeListener

public void removeListener(AnnotationProcessorListener listener)
Specified by:
removeListener in interface AnnotationProcessorEnvironment

getDeclarationsAnnotatedWith

public Collection<Declaration> getDeclarationsAnnotatedWith(AnnotationTypeDeclaration typeDeclaration)
Specified by:
getDeclarationsAnnotatedWith in interface AnnotationProcessorEnvironment