public interface EclipseAnnotationProcessorEnvironment extends AnnotationProcessorEnvironment
AnnotationProcessorEnvironment
to expose
extra API.Modifier and Type | Method and Description |
---|---|
void |
addTypeDependency(String fullyQualifiedTypeName)
Add a type dependency on the type named
fullyQualifiedTypeName |
CompilationUnit |
getAST()
Return the AST of the file currently being processed.
|
IJavaProject |
getJavaProject() |
EclipseMessager |
getMessager()
Returns the messager used to report errors, warnings, and other
notices.
|
Phase |
getPhase() |
addListener, getDeclarationsAnnotatedWith, getDeclarationUtils, getFiler, getOptions, getPackage, getSpecifiedTypeDeclarations, getTypeDeclaration, getTypeDeclarations, getTypeUtils, removeListener
CompilationUnit getAST()
null
for if called by a batch processor.EclipseMessager getMessager()
AnnotationProcessorEnvironment
getMessager
in interface AnnotationProcessorEnvironment
Phase getPhase()
Phase.RECONCILE
or Phase.BUILD
IJavaProject getJavaProject()
void addTypeDependency(String fullyQualifiedTypeName)
fullyQualifiedTypeName
fullyQualifiedTypeName
- the fully qualified (dot-separated) name of a type.IllegalArgumentException
- if fullyQualifiedTypeName
cannot be resolved to a type.Copyright (c) IBM Corp. and others 2000, 2006. All Rights Reserved.