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 VariableInfo
info
private int
slot
private ExpressionNode
value
private java.lang.String
variable
-
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.JsonNode
apply(Scope scope, com.fasterxml.jackson.databind.JsonNode input)
void
computeMatchContexts(DotExpression parent)
void
dump(int level)
java.util.List<ExpressionNode>
getChildren()
ExpressionNode
getDeclaration()
int
getSlot()
java.lang.String
getVariable()
ExpressionNode
optimize()
void
register(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:
computeMatchContexts
in interfaceExpressionNode
- Overrides:
computeMatchContexts
in classAbstractNode
-
dump
public void dump(int level)
- Specified by:
dump
in interfaceExpressionNode
- Overrides:
dump
in classAbstractNode
-
getChildren
public java.util.List<ExpressionNode> getChildren()
- Specified by:
getChildren
in interfaceExpressionNode
- Overrides:
getChildren
in classAbstractNode
-
optimize
public ExpressionNode optimize()
- Specified by:
optimize
in interfaceExpressionNode
- Overrides:
optimize
in classAbstractNode
-
register
public void register(ScopeManager scope)
-
getDeclaration
public ExpressionNode getDeclaration()
-
-