|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProcessingContext
This interface defines the context for the annotation procesing handler. There is only one context instance per AnnotationProcessor invocation.
| Method Summary | ||
|---|---|---|
ReadableArchive |
getArchive()
Returns the module archive that can be used to load files/resources, that assist in the processing of annotations. |
|
ErrorHandler |
getErrorHandler()
Return the error handler for this processing context. |
|
AnnotatedElementHandler |
getHandler()
Return the current handler (if any) receving all the annotated elements start and stop events. |
|
|
getHandler(java.lang.Class<U> handlerType)
Return the top handler casted to the requested handler type |
|
Scanner |
getProcessingInput()
Returns the Scanner implementation which is responsible for providing access to all the .class files the processing tool needs to scan. |
|
AnnotationProcessor |
getProcessor()
Returns the AnnotationProcessor instance this context is associated with. |
|
AnnotatedElementHandler |
popHandler()
Removes the top handler |
|
void |
pushHandler(AnnotatedElementHandler handler)
Push a new handler on the stack of handlers. |
|
void |
setArchive(ReadableArchive archive)
|
|
void |
setErrorHandler(ErrorHandler errorHandler)
Sets the ErrorHandler instance for all errors/warnings that may be raised during the annotation processing. |
|
void |
setProcessingInput(Scanner scanner)
Sets the Scanner implementation which is responsible for accessing all the .class files the AnnotationProcessor should process. |
|
| Method Detail |
|---|
AnnotationProcessor getProcessor()
Scanner getProcessingInput()
ReadableArchive getArchive()
void setArchive(ReadableArchive archive)
void setProcessingInput(Scanner scanner)
void pushHandler(AnnotatedElementHandler handler)
handler - the new events handler.AnnotatedElementHandler getHandler()
AnnotatedElementHandler popHandler()
<U extends AnnotatedElementHandler> U getHandler(java.lang.Class<U> handlerType)
throws java.lang.ClassCastException
requested - handler type
java.lang.ClassCastException - if the top handler cannot be casted to
the requested handler type.void setErrorHandler(ErrorHandler errorHandler)
handler - the annotation handlerErrorHandler getErrorHandler()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||