Package com.schibsted.spt.data.jslt.impl
Class IfExpression
java.lang.Object
com.schibsted.spt.data.jslt.impl.AbstractNode
com.schibsted.spt.data.jslt.impl.IfExpression
- All Implemented Interfaces:
ExpressionNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate LetExpression[]
private ExpressionNode
private ExpressionNode
private ExpressionNode
private LetExpression[]
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
Constructor Summary
ConstructorsConstructorDescriptionIfExpression
(ExpressionNode test, LetExpression[] thenlets, ExpressionNode then, LetExpression[] elselets, ExpressionNode orelse, Location location) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
void
computeMatchContexts
(DotExpression parent) void
dump
(int level) optimize()
void
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
getLocation
-
Field Details
-
test
-
thenlets
-
then
-
elselets
-
orelse
-
-
Constructor Details
-
IfExpression
public IfExpression(ExpressionNode test, LetExpression[] thenlets, ExpressionNode then, LetExpression[] elselets, ExpressionNode orelse, Location location)
-
-
Method Details
-
apply
public com.fasterxml.jackson.databind.JsonNode apply(Scope scope, com.fasterxml.jackson.databind.JsonNode input) -
computeMatchContexts
- Specified by:
computeMatchContexts
in interfaceExpressionNode
- Overrides:
computeMatchContexts
in classAbstractNode
-
optimize
- Specified by:
optimize
in interfaceExpressionNode
- Overrides:
optimize
in classAbstractNode
-
prepare
- Specified by:
prepare
in interfaceExpressionNode
- Overrides:
prepare
in classAbstractNode
-
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
-