org.apache.beehive.controls.runtime.generator.apt
Class CheckerAnnotationProcessorEnvironmentImpl
Object
CheckerAnnotationProcessorEnvironmentImpl
- All Implemented Interfaces:
- AnnotationProcessorEnvironment
public final class CheckerAnnotationProcessorEnvironmentImpl
- extends Object
- implements AnnotationProcessorEnvironment
Wrapper for an AnnotationProcessorEnvironment instance.
Keeps track of errors / warnings logged.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckerAnnotationProcessorEnvironmentImpl
public CheckerAnnotationProcessorEnvironmentImpl(Diagnostics aptDiagnostics)
- Parameters:
aptDiagnostics
-
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