Package com.hubspot.jinjava.el.ext.eager
Class EagerAstMethod
- java.lang.Object
-
- de.odysseus.el.tree.impl.ast.AstNode
-
- de.odysseus.el.tree.impl.ast.AstMethod
-
- com.hubspot.jinjava.el.ext.eager.EagerAstMethod
-
- All Implemented Interfaces:
EvalResultHolder
,de.odysseus.el.tree.ExpressionNode
,de.odysseus.el.tree.Node
public class EagerAstMethod extends de.odysseus.el.tree.impl.ast.AstMethod implements EvalResultHolder
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
evalResult
protected boolean
hasEvalResult
protected EvalResultHolder
params
protected EvalResultHolder
property
-
Constructor Summary
Constructors Constructor Description EagerAstMethod(de.odysseus.el.tree.impl.ast.AstProperty property, de.odysseus.el.tree.impl.ast.AstParameters params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
eval(de.odysseus.el.tree.Bindings bindings, javax.el.ELContext context)
Object
getEvalResult()
String
getPartiallyResolved(de.odysseus.el.tree.Bindings bindings, javax.el.ELContext context, DeferredParsingException deferredParsingException, boolean preserveIdentifier)
This method is used when we need to reconstruct the method property and params manually.boolean
hasEvalResult()
void
setEvalResult(Object evalResult)
-
Methods inherited from class de.odysseus.el.tree.impl.ast.AstMethod
appendStructure, eval, getCardinality, getChild, getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue, toString
-
Methods inherited from class de.odysseus.el.tree.impl.ast.AstNode
findAccessibleMethod, getStructuralId, getValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.hubspot.jinjava.el.ext.eager.EvalResultHolder
checkEvalResultSize, eval
-
-
-
-
Field Detail
-
evalResult
protected Object evalResult
-
hasEvalResult
protected boolean hasEvalResult
-
property
protected final EvalResultHolder property
-
params
protected final EvalResultHolder params
-
-
Method Detail
-
eval
public Object eval(de.odysseus.el.tree.Bindings bindings, javax.el.ELContext context)
- Overrides:
eval
in classde.odysseus.el.tree.impl.ast.AstMethod
-
getEvalResult
public Object getEvalResult()
- Specified by:
getEvalResult
in interfaceEvalResultHolder
-
setEvalResult
public void setEvalResult(Object evalResult)
- Specified by:
setEvalResult
in interfaceEvalResultHolder
-
hasEvalResult
public boolean hasEvalResult()
- Specified by:
hasEvalResult
in interfaceEvalResultHolder
-
getPartiallyResolved
public String getPartiallyResolved(de.odysseus.el.tree.Bindings bindings, javax.el.ELContext context, DeferredParsingException deferredParsingException, boolean preserveIdentifier)
This method is used when we need to reconstruct the method property and params manually. Neither the property or params could be evaluated so we dive into the property and figure out where the DeferredParsingException came from.- Specified by:
getPartiallyResolved
in interfaceEvalResultHolder
-
-