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, params
Fields 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 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
-
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:
evaluate
in interfaceExpression
- Overrides:
evaluate
in classFunctionExpressionImpl
- Returns:
- default implementation returns null
-
getJsonPath
Returns the JSON path to be selected. -
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
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
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:
-