|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.apf.impl.AnnotationProcessorImpl
public class AnnotationProcessorImpl
| Constructor Summary | |
|---|---|
AnnotationProcessorImpl()
Creates a new instance of AnnotationProcessorImpl |
|
| Method Summary | |
|---|---|
ProcessingContext |
createContext()
Creates a new empty ProcessingContext instance which can be configured before invoking the process() method. |
AnnotationHandler |
getAnnotationHandler(java.lang.Class<? extends java.lang.annotation.Annotation> type)
|
java.lang.reflect.AnnotatedElement |
getLastAnnotatedElement(java.lang.annotation.ElementType type)
|
java.util.Stack<org.glassfish.apf.impl.StackElement> |
getStack()
|
void |
log(java.util.logging.Level level,
AnnotationInfo locator,
java.lang.String localizedMessage)
Log a message on the default logger |
void |
popAnnotationHandler(java.lang.Class<? extends java.lang.annotation.Annotation> type)
Unregisters the last annotation handler registered for an annotation type. |
ProcessingResult |
process(ProcessingContext ctx)
Starts the annotation processing tool passing the processing context which encapuslate all information necessary for the configuration of the tool. |
ProcessingResult |
process(ProcessingContext ctx,
java.lang.Class[] classes)
Process a set of classes from the parameter list rather than from the processing context. |
void |
pushAnnotationHandler(AnnotationHandler handler)
Registers a new AnnotationHandler for a particular annotation type. |
void |
setDelegate(AnnotationProcessorImpl delegate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationProcessorImpl()
| Method Detail |
|---|
public void setDelegate(AnnotationProcessorImpl delegate)
public ProcessingContext createContext()
AnnotationProcessor
createContext in interface AnnotationProcessor
public void log(java.util.logging.Level level,
AnnotationInfo locator,
java.lang.String localizedMessage)
log in interface AnnotationProcessor
public ProcessingResult process(ProcessingContext ctx)
throws AnnotationProcessorException
process in interface AnnotationProcessorctx - is the initialized processing context
AnnotationProcessorException
public ProcessingResult process(ProcessingContext ctx,
java.lang.Class[] classes)
throws AnnotationProcessorException
process in interface AnnotationProcessorthe - processing contextthe - list of classes to process
AnnotationProcessorException - if handlers fail to process
an annotationpublic void pushAnnotationHandler(AnnotationHandler handler)
AnnotationProcessor
pushAnnotationHandler in interface AnnotationProcessorhandler - the annotation handler instancepublic void popAnnotationHandler(java.lang.Class<? extends java.lang.annotation.Annotation> type)
AnnotationProcessor
popAnnotationHandler in interface AnnotationProcessortype - the annotation type.public AnnotationHandler getAnnotationHandler(java.lang.Class<? extends java.lang.annotation.Annotation> type)
getAnnotationHandler in interface AnnotationProcessortype - the annotation type
public java.lang.reflect.AnnotatedElement getLastAnnotatedElement(java.lang.annotation.ElementType type)
getLastAnnotatedElement in interface AnnotationProcessorpublic java.util.Stack<org.glassfish.apf.impl.StackElement> getStack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||