Package com.schibsted.spt.data.jslt.impl
Class ForExpression
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.AbstractNode
-
- com.schibsted.spt.data.jslt.impl.ForExpression
-
- All Implemented Interfaces:
ExpressionNode
public class ForExpression extends AbstractNode
-
-
Field Summary
Fields Modifier and Type Field Description private ExpressionNode
ifExpr
private LetExpression[]
lets
private ExpressionNode
loopExpr
private ExpressionNode
valueExpr
-
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
-
Constructor Summary
Constructors Constructor Description ForExpression(ExpressionNode valueExpr, LetExpression[] lets, ExpressionNode loopExpr, ExpressionNode ifExpr, 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
optimize()
void
prepare(PreparationContext ctx)
java.lang.String
toString()
-
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
getLocation
-
-
-
-
Field Detail
-
valueExpr
private ExpressionNode valueExpr
-
lets
private LetExpression[] lets
-
loopExpr
private ExpressionNode loopExpr
-
ifExpr
private ExpressionNode ifExpr
-
-
Constructor Detail
-
ForExpression
public ForExpression(ExpressionNode valueExpr, LetExpression[] lets, ExpressionNode loopExpr, ExpressionNode ifExpr, Location location)
-
-
Method Detail
-
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
-
optimize
public ExpressionNode optimize()
- Specified by:
optimize
in interfaceExpressionNode
- Overrides:
optimize
in classAbstractNode
-
prepare
public void prepare(PreparationContext ctx)
- Specified by:
prepare
in interfaceExpressionNode
- Overrides:
prepare
in classAbstractNode
-
getChildren
public java.util.List<ExpressionNode> getChildren()
- Specified by:
getChildren
in interfaceExpressionNode
- Overrides:
getChildren
in classAbstractNode
-
dump
public void dump(int level)
- Specified by:
dump
in interfaceExpressionNode
- Overrides:
dump
in classAbstractNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-