public interface ProcessingContext
| Modifier and Type | Method and Description |
|---|---|
org.glassfish.api.deployment.archive.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.
|
<U extends AnnotatedElementHandler> |
getHandler(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(org.glassfish.api.deployment.archive.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.
|
AnnotationProcessor getProcessor()
Scanner getProcessingInput()
org.glassfish.api.deployment.archive.ReadableArchive getArchive()
void setArchive(org.glassfish.api.deployment.archive.ReadableArchive archive)
void setProcessingInput(Scanner scanner)
void pushHandler(AnnotatedElementHandler handler)
handler - the new events handler.AnnotatedElementHandler getHandler()
AnnotatedElementHandler popHandler()
<U extends AnnotatedElementHandler> U getHandler(Class<U> handlerType) throws ClassCastException
requested - handler typeClassCastException - if the top handler cannot be casted to
the requested handler type.void setErrorHandler(ErrorHandler errorHandler)
handler - the annotation handlerErrorHandler getErrorHandler()
Copyright © 2019. All rights reserved.