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[]childrenprivate booleancontainsDynamicKeysprivate DotExpressioncontextQueryprivate JsonFilterfilterprivate java.util.Set<java.lang.String>keysprivate LetExpression[]letsprivate MatcherExpressionmatcher-
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.JsonNodeapply(Scope scope, com.fasterxml.jackson.databind.JsonNode input)private voidcheckForDuplicates()voidcomputeMatchContexts(DotExpression parent)voiddump(int level)private voidevaluateMatcher(Scope scope, com.fasterxml.jackson.databind.JsonNode input, com.fasterxml.jackson.databind.node.ObjectNode object)java.util.List<ExpressionNode>getChildren()ExpressionNodeoptimize()voidprepare(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:
computeMatchContextsin interfaceExpressionNode- Overrides:
computeMatchContextsin classAbstractNode
-
optimize
public ExpressionNode optimize()
- Specified by:
optimizein interfaceExpressionNode- Overrides:
optimizein classAbstractNode
-
prepare
public void prepare(PreparationContext ctx)
- Specified by:
preparein interfaceExpressionNode- Overrides:
preparein classAbstractNode
-
getChildren
public java.util.List<ExpressionNode> getChildren()
- Specified by:
getChildrenin interfaceExpressionNode- Overrides:
getChildrenin classAbstractNode
-
dump
public void dump(int level)
- Specified by:
dumpin interfaceExpressionNode- Overrides:
dumpin classAbstractNode
-
-