Package com.hubspot.jinjava.el.ext.eager
Class EagerAstChoice
- java.lang.Object
-
- de.odysseus.el.tree.impl.ast.AstNode
-
- de.odysseus.el.tree.impl.ast.AstRightValue
-
- de.odysseus.el.tree.impl.ast.AstChoice
-
- com.hubspot.jinjava.el.ext.eager.EagerAstChoice
-
- All Implemented Interfaces:
EvalResultHolder
,de.odysseus.el.tree.ExpressionNode
,de.odysseus.el.tree.Node
public class EagerAstChoice extends de.odysseus.el.tree.impl.ast.AstChoice implements EvalResultHolder
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
evalResult
protected boolean
hasEvalResult
protected EvalResultHolder
no
protected EvalResultHolder
question
protected EvalResultHolder
yes
-
Constructor Summary
Constructors Constructor Description EagerAstChoice(de.odysseus.el.tree.impl.ast.AstNode question, de.odysseus.el.tree.impl.ast.AstNode yes, de.odysseus.el.tree.impl.ast.AstNode no)
-
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)
boolean
hasEvalResult()
void
setEvalResult(Object evalResult)
-
Methods inherited from class de.odysseus.el.tree.impl.ast.AstChoice
appendStructure, getCardinality, getChild, toString
-
Methods inherited from class de.odysseus.el.tree.impl.ast.AstRightValue
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
-
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
-
question
protected final EvalResultHolder question
-
yes
protected final EvalResultHolder yes
-
no
protected final EvalResultHolder no
-
-
Method Detail
-
eval
public Object eval(de.odysseus.el.tree.Bindings bindings, javax.el.ELContext context) throws javax.el.ELException
- Overrides:
eval
in classde.odysseus.el.tree.impl.ast.AstChoice
- Throws:
javax.el.ELException
-
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)
- Specified by:
getPartiallyResolved
in interfaceEvalResultHolder
-
-