Class JsonSelectFunction
Object
ExpressionAbstract
DefaultExpression
FunctionExpressionImpl
JsonSelectFunction
- All Implemented Interfaces:
Expression,Function,PropertyName,FunctionExpression,Factory
Function that selects a JSON object using a JSON path. This function implements the
PropertyName interface
for compatibility with the filtering processing stack.-
Field Summary
Fields inherited from class FunctionExpressionImpl
fallback, functionName, name, paramsFields inherited from interface Expression
NIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccept(ExpressionVisitor visitor, Object extraData) Accepts a visitor.Evaluates this function against the provided object.Returns the JSON path to be selected.Returns namespace context information, or null if unavailable/inapplicableReturns the name of the property whose value will be returned by theevaluatemethod.Methods inherited from class FunctionExpressionImpl
equals, functionName, getExpression, getFallbackValue, getFunctionName, getImplementationHints, getName, getParameters, hashCode, setFallbackValue, setParameters, toStringMethods inherited from class DefaultExpression
isAttributeExpression, isExpression, isFunctionExpression, isGeometryExpression, isLiteralExpression, isMathExpressionMethods inherited from class ExpressionAbstract
evaluateMethods inherited from interface Expression
evaluate
-
Constructor Details
-
JsonSelectFunction
public JsonSelectFunction()
-
-
Method Details
-
evaluate
Evaluates this function against the provided object. If a NULL object is provided and attribute expression will be returned.- Specified by:
evaluatein interfaceExpression- Overrides:
evaluatein classFunctionExpressionImpl- Returns:
- default implementation returns null
-
getJsonPath
Returns the JSON path to be selected. -
getPropertyName
Description copied from interface:PropertyNameReturns the name of the property whose value will be returned by theevaluatemethod.- Specified by:
getPropertyNamein interfacePropertyName
-
getNamespaceContext
Description copied from interface:PropertyNameReturns namespace context information, or null if unavailable/inapplicable- Specified by:
getNamespaceContextin interfacePropertyName- Returns:
- namespace context information, or null if unavailable/inapplicable
-
accept
Description copied from interface:ExpressionAccepts a visitor. Subclasses must implement with a method whose content is the following:return visitor.visit(this, extraData);
- Specified by:
acceptin interfaceExpression- Overrides:
acceptin classFunctionExpressionImpl- See Also:
-