Package com.schibsted.spt.data.jslt.impl
Class VariableExpression
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.AbstractNode
-
- com.schibsted.spt.data.jslt.impl.VariableExpression
-
- All Implemented Interfaces:
ExpressionNode
public class VariableExpression extends AbstractNode
-
-
Field Summary
Fields Modifier and Type Field Description private VariableInfo
info
private int
slot
private java.lang.String
variable
-
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
-
Constructor Summary
Constructors Constructor Description VariableExpression(java.lang.String variable, 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
dump(int level)
java.lang.String
getVariable()
ExpressionNode
optimize()
void
prepare(PreparationContext ctx)
java.lang.String
toString()
-
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
computeMatchContexts, getChildren, getLocation
-
-
-
-
Field Detail
-
variable
private java.lang.String variable
-
slot
private int slot
-
info
private VariableInfo info
-
-
Constructor Detail
-
VariableExpression
public VariableExpression(java.lang.String variable, Location location)
-
-
Method Detail
-
getVariable
public java.lang.String getVariable()
-
apply
public com.fasterxml.jackson.databind.JsonNode apply(Scope scope, com.fasterxml.jackson.databind.JsonNode input)
-
dump
public void dump(int level)
- Specified by:
dump
in interfaceExpressionNode
- Overrides:
dump
in classAbstractNode
-
prepare
public void prepare(PreparationContext ctx)
- Specified by:
prepare
in interfaceExpressionNode
- Overrides:
prepare
in classAbstractNode
-
optimize
public ExpressionNode optimize()
- Specified by:
optimize
in interfaceExpressionNode
- Overrides:
optimize
in classAbstractNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-