Package com.schibsted.spt.data.jslt.impl
Class ObjectExpression
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.AbstractNode
-
- com.schibsted.spt.data.jslt.impl.ObjectExpression
-
- All Implemented Interfaces:
ExpressionNode
public class ObjectExpression extends AbstractNode
-
-
Field Summary
Fields Modifier and Type Field Description private PairExpression[]
children
private boolean
containsDynamicKeys
private DotExpression
contextQuery
private JsonFilter
filter
private java.util.Set<java.lang.String>
keys
private LetExpression[]
lets
private MatcherExpression
matcher
-
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
-
Constructor Summary
Constructors Constructor Description ObjectExpression(LetExpression[] lets, PairExpression[] children, MatcherExpression matcher, Location location, JsonFilter filter)
-
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)
private void
checkForDuplicates()
void
computeMatchContexts(DotExpression parent)
void
dump(int level)
private void
evaluateMatcher(Scope scope, com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.node.ObjectNode object)
java.util.List<ExpressionNode>
getChildren()
ExpressionNode
optimize()
void
prepare(PreparationContext ctx)
-
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
getLocation
-
-
-
-
Field Detail
-
lets
private LetExpression[] lets
-
children
private PairExpression[] children
-
contextQuery
private DotExpression contextQuery
-
matcher
private MatcherExpression matcher
-
keys
private java.util.Set<java.lang.String> keys
-
filter
private JsonFilter filter
-
containsDynamicKeys
private boolean containsDynamicKeys
-
-
Constructor Detail
-
ObjectExpression
public ObjectExpression(LetExpression[] lets, PairExpression[] children, MatcherExpression matcher, Location location, JsonFilter filter)
-
-
Method Detail
-
checkForDuplicates
private void checkForDuplicates()
-
apply
public com.fasterxml.jackson.databind.JsonNode apply(Scope scope, com.fasterxml.jackson.databind.JsonNode input)
-
evaluateMatcher
private void evaluateMatcher(Scope scope, com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.node.ObjectNode object)
-
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
-
-