public class JexlInspectionResultProcessor<M> extends BaseInspectionResultProcessor<M>
${...}
using JEXL.| Constructor and Description |
|---|
JexlInspectionResultProcessor()
Constructs a FacesInspectionResultProcessor.
|
JexlInspectionResultProcessor(JexlInspectionResultProcessorConfig config)
Constructs a FacesInspectionResultProcessor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.jexl2.JexlContext |
createContext(M metawidget)
Prepare the JexlContext.
|
protected org.apache.commons.jexl2.JexlEngine |
createEngine()
Prepare the JexlEngine.
|
protected void |
processAttributes(Map<String,String> attributes,
M metawidget)
Process the given attributes (which may belong to either entity, property or action).
|
protected void |
processEntity(Map<String,String> attributes,
M metawidget,
Object toInspect,
String type,
String... names)
Defers to
processAttributes by default. |
Element |
processInspectionResultAsDom(Element inspectionResult,
M metawidget,
Object toInspect,
String type,
String... names)
Optimized verison of
processInspectionResult that avoids DOM
serialization/deserialization. |
protected void |
processTraits(Element entity,
M metawidget,
Object toInspect,
String type,
String... names)
Process the traits of the given entity.
|
processInspectionResult, processTraitpublic JexlInspectionResultProcessor()
public JexlInspectionResultProcessor(JexlInspectionResultProcessorConfig config)
public Element processInspectionResultAsDom(Element inspectionResult, M metawidget, Object toInspect, String type, String... names)
DomInspectionResultProcessorprocessInspectionResult that avoids DOM
serialization/deserialization.processInspectionResultAsDom in interface DomInspectionResultProcessor<Element,M>processInspectionResultAsDom in class BaseInspectionResultProcessor<M>inspectionResult - the inspection result to process. Never nullprotected void processEntity(Map<String,String> attributes, M metawidget, Object toInspect, String type, String... names)
BaseInspectionResultProcessorprocessAttributes by default.processEntity in class BaseInspectionResultProcessor<M>attributes - attributes of the entity being processed. Subclasses can modify this Map to
modify the attributesmetawidget - the parent Metawidget. Never null. May be useful to help processingtoInspect - the Object being inspected. May be useful to help processingtype - the type being inspected. May be useful to help processingnames - the names being inspected. May be useful to help processingprotected void processTraits(Element entity, M metawidget, Object toInspect, String type, String... names)
BaseInspectionResultProcessorprocessTraits in class BaseInspectionResultProcessor<M>entity - the DOM Element representing the entity that contains the traitsmetawidget - the parent Metawidget. Never null. May be useful to help processingtoInspect - the Object being inspected. May be useful to help processingtype - the type being inspected. May be useful to help processingnames - the names being inspected. May be useful to help processingprotected void processAttributes(Map<String,String> attributes, M metawidget)
BaseInspectionResultProcessorDoes nothing by default.
processAttributes in class BaseInspectionResultProcessor<M>attributes - attributes of the trait being processed. Subclasses can modify this Map to
modify the attributesmetawidget - the parent Metawidget. Never null. May be useful to help processingprotected org.apache.commons.jexl2.JexlEngine createEngine()
protected org.apache.commons.jexl2.JexlContext createContext(M metawidget)
JexlInspectionResultProcessor.setInject.
Subclasses can override this method to control what is available in the context.
metawidget - the parent Metawidget. Never null. May be useful for finding the object to add to
the contextCopyright © 2015. All Rights Reserved.