Package com.schibsted.spt.data.jslt.impl
Class LetExpression
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.AbstractNode
-
- com.schibsted.spt.data.jslt.impl.LetExpression
-
- All Implemented Interfaces:
ExpressionNode
public class LetExpression extends AbstractNode
-
-
Field Summary
Fields Modifier and Type Field Description private VariableInfoinfoprivate intslotprivate ExpressionNodevalueprivate java.lang.Stringvariable-
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
-
Constructor Summary
Constructors Constructor Description LetExpression(java.lang.String variable, ExpressionNode value, Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodeapply(Scope scope, com.fasterxml.jackson.databind.JsonNode input)voidcomputeMatchContexts(DotExpression parent)voiddump(int level)java.util.List<ExpressionNode>getChildren()ExpressionNodegetDeclaration()intgetSlot()java.lang.StringgetVariable()ExpressionNodeoptimize()voidregister(ScopeManager scope)-
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
getLocation, prepare
-
-
-
-
Field Detail
-
variable
private java.lang.String variable
-
value
private ExpressionNode value
-
slot
private int slot
-
info
private VariableInfo info
-
-
Constructor Detail
-
LetExpression
public LetExpression(java.lang.String variable, ExpressionNode value, Location location)
-
-
Method Detail
-
getVariable
public java.lang.String getVariable()
-
getSlot
public int getSlot()
-
apply
public com.fasterxml.jackson.databind.JsonNode apply(Scope scope, com.fasterxml.jackson.databind.JsonNode input)
-
computeMatchContexts
public void computeMatchContexts(DotExpression parent)
- Specified by:
computeMatchContextsin interfaceExpressionNode- Overrides:
computeMatchContextsin classAbstractNode
-
dump
public void dump(int level)
- Specified by:
dumpin interfaceExpressionNode- Overrides:
dumpin classAbstractNode
-
getChildren
public java.util.List<ExpressionNode> getChildren()
- Specified by:
getChildrenin interfaceExpressionNode- Overrides:
getChildrenin classAbstractNode
-
optimize
public ExpressionNode optimize()
- Specified by:
optimizein interfaceExpressionNode- Overrides:
optimizein classAbstractNode
-
register
public void register(ScopeManager scope)
-
getDeclaration
public ExpressionNode getDeclaration()
-
-