|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface JexlContext.AnnotationProcessor
A marker interface of the JexlContext that allows to process annotations. It is used by the interpreter during evaluation to execute annotation evaluations.
If the JexlContext is not an instance of an AnnotationProcessor, encountering an annotation will generate an error or a warning depending on the engine strictness.
Method Summary | |
---|---|
Object |
processAnnotation(String name,
Object[] args,
Callable<Object> statement)
Processes an annotation. |
Method Detail |
---|
Object processAnnotation(String name, Object[] args, Callable<Object> statement) throws Exception
All annotations are processed through this method; the statement 'call' is to be performed within the processAnnotation method. The implementation must perform the call explicitly.
The arguments and the statement must not be referenced or cached for longer than the duration of the processAnnotation call.
name
- the annotation nameargs
- the arguments of the annotation, evaluated as arguments of this callstatement
- the statement that was annotated; the processor should invoke this statement 'call' method
Exception
- if annotation processing fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |