- All Superinterfaces:
AnnotationProcessorEnvironmentto expose extra API.
Method SummaryModifier and TypeMethodDescription
voidAdd a type dependency on the type named
getAST()Return the AST of the file currently being processed.Returns the messager used to report errors, warnings, and other notices.
getPhase()Indicate whether the processor is being called during a build or during editing (that is, during reconcile).
getASTCompilationUnit getAST()Return the AST of the file currently being processed.
- the root of the fully flushed out DOM/AST of the file that is currently being processed.
This AST will contain binding information.
nullfor if called by a batch processor.
getMessagerEclipseMessager getMessager()Description copied from interface:
AnnotationProcessorEnvironmentReturns the messager used to report errors, warnings, and other notices.
getPhasePhase getPhase()Indicate whether the processor is being called during a build or during editing (that is, during reconcile).
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
- the java project associated with the current processing phase
(String fullyQualifiedTypeName)Add a type dependency on the type named
fullyQualifiedTypeName- the fully qualified (dot-separated) name of a type.
fullyQualifiedTypeNamecannot be resolved to a type.