Package com.schibsted.spt.data.jslt.impl
Class FailDotExpression
- java.lang.Object
-
- com.schibsted.spt.data.jslt.impl.AbstractNode
-
- com.schibsted.spt.data.jslt.impl.DotExpression
-
- com.schibsted.spt.data.jslt.impl.FailDotExpression
-
- All Implemented Interfaces:
ExpressionNode
public class FailDotExpression extends DotExpression
These expression cannot be generated in the syntax, but are used to mark that an object matcher (* : .) is being used inside an array, which is not allowed. The computeMatchContexts() method in ArrayExpression will inject a FailDotExpression, which is later used to detect that the matcher is used in an illegal location.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
where
-
Fields inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
location
-
-
Constructor Summary
Constructors Constructor Description FailDotExpression(Location location, java.lang.String where)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOk(Location matcher)
-
Methods inherited from class com.schibsted.spt.data.jslt.impl.DotExpression
apply, dump, getChildren, optimize, toString
-
Methods inherited from class com.schibsted.spt.data.jslt.impl.AbstractNode
computeMatchContexts, getLocation, prepare
-
-
-
-
Constructor Detail
-
FailDotExpression
public FailDotExpression(Location location, java.lang.String where)
-
-
Method Detail
-
checkOk
public void checkOk(Location matcher)
- Overrides:
checkOk
in classDotExpression
-
-