Class JsonSelectAllFunction
- Object
-
- ExpressionAbstract
-
- DefaultExpression
-
- FunctionExpressionImpl
-
- JsonSelectAllFunction
-
- All Implemented Interfaces:
Expression
,Function
,PropertyName
,FunctionExpression
,Factory
public class JsonSelectAllFunction extends FunctionExpressionImpl implements PropertyName
Extracts all the values of a given JSON path.
-
-
Field Summary
Fields Modifier and Type Field Description static FunctionName
DEFINITION
-
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, params
-
Fields inherited from interface Expression
NIL
-
-
Constructor Summary
Constructors Constructor Description JsonSelectAllFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accept(ExpressionVisitor visitor, Object extraData)
Accepts a visitor.Object
evaluate(Object object)
Subclass should override, default implementation returns null.String
getJsonPath()
NamespaceSupport
getNamespaceContext()
Returns namespace context information, or null if unavailable/inapplicableString
getPropertyName()
Returns the name of the property whose value will be returned by theevaluate
method.-
Methods inherited from class FunctionExpressionImpl
equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toString
-
Methods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpression
-
Methods inherited from class ExpressionAbstract
evaluate
-
Methods inherited from interface Expression
evaluate
-
-
-
-
Field Detail
-
DEFINITION
public static FunctionName DEFINITION
-
-
Method Detail
-
evaluate
public Object evaluate(Object object)
Description copied from class:ExpressionAbstract
Subclass should override, default implementation returns null.- Specified by:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
getJsonPath
public String getJsonPath()
-
getPropertyName
public String getPropertyName()
Description copied from interface:PropertyName
Returns the name of the property whose value will be returned by theevaluate
method.- Specified by:
getPropertyName
in interfacePropertyName
-
getNamespaceContext
public NamespaceSupport getNamespaceContext()
Description copied from interface:PropertyName
Returns namespace context information, or null if unavailable/inapplicable- Specified by:
getNamespaceContext
in interfacePropertyName
- Returns:
- namespace context information, or null if unavailable/inapplicable
-
accept
public Object accept(ExpressionVisitor visitor, Object extraData)
Description copied from interface:Expression
Accepts a visitor. Subclasses must implement with a method whose content is the following:return visitor.visit(this, extraData);
- Specified by:
accept
in interfaceExpression
- Overrides:
accept
in classFunctionExpressionImpl
- See Also:
Expression.accept(ExpressionVisitor, Object)
-
-