public static interface JexlContext.AnnotationProcessor
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.
Modifier and Type | Method and Description |
---|---|
Object |
processAnnotation(String name,
Object[] args,
Callable<Object> statement)
Processes an annotation.
|
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' methodException
- if annotation processing failsCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.