java.lang.Object
org.apache.jena.sparql.expr.ExprTransformCopy
org.apache.jena.sparql.expr.ExprTransformSubstitute
- All Implemented Interfaces:
ExprTransform
An expression transformer that substitutes another expression in place of variables
Primarily introduced in order to support the new UserDefinedFunction capabilities
-
Field Summary
Fields inherited from class org.apache.jena.sparql.expr.ExprTransformCopy
COPY_ALWAYS, COPY_ONLY_ON_CHANGE -
Constructor Summary
ConstructorsConstructorDescriptionExprTransformSubstitute(Map<String, Expr> substitutions) Creates an advanced transform that uses the given map to make substitutionsExprTransformSubstitute(Var find, Expr replace) Creates a simple transform that replaces any occurrence of the given variable with the given expression -
Method Summary
-
Constructor Details
-
ExprTransformSubstitute
Creates a simple transform that replaces any occurrence of the given variable with the given expression- Parameters:
find- Variable to findreplace- Expression to replace with
-
ExprTransformSubstitute
Creates an advanced transform that uses the given map to make substitutions- Parameters:
substitutions- Substitutions from variables to expressions
-
-
Method Details
-
transform
- Specified by:
transformin interfaceExprTransform- Overrides:
transformin classExprTransformCopy
-