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()
Indicate whether the processor is being called during a build or during editing
(that is, during reconcile).
|
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()
Note that processors that behave differently depending on phase may cause
inconsistent results, such as problems showing up in the Problems view but not in
the editor window. If the goal is to improve edit-time performance by skipping
processing during reconcile, it is recommended to use the
PROCESSING_IN_EDITOR_DISABLED
option instead.
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) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.