|
Eclipse JDT Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EclipseAnnotationProcessorEnvironment
Extended the APT AnnotationProcessorEnvironment to expose
extra API.
| Method Summary | |
|---|---|
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). |
| Methods inherited from interface com.sun.mirror.apt.AnnotationProcessorEnvironment |
|---|
addListener, getDeclarationsAnnotatedWith, getDeclarationUtils, getFiler, getOptions, getPackage, getSpecifiedTypeDeclarations, getTypeDeclaration, getTypeDeclarations, getTypeUtils, removeListener |
| Method Detail |
|---|
CompilationUnit getAST()
null for if called by a batch processor.EclipseMessager getMessager()
AnnotationProcessorEnvironment
getMessager in interface AnnotationProcessorEnvironmentPhase 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.BUILDIJavaProject 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.
|
Eclipse JDT Release 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||