Package org.apache.jena.sparql.expr
Class ExprTransformSubstitute
- java.lang.Object
-
- org.apache.jena.sparql.expr.ExprTransformCopy
-
- org.apache.jena.sparql.expr.ExprTransformSubstitute
-
- All Implemented Interfaces:
ExprTransform
public class ExprTransformSubstitute extends ExprTransformCopy
An expression transformer that substitutes another expression in place of variablesPrimarily introduced in order to support the new
UserDefinedFunctioncapabilities
-
-
Field Summary
-
Fields inherited from class org.apache.jena.sparql.expr.ExprTransformCopy
COPY_ALWAYS, COPY_ONLY_ON_CHANGE
-
-
Constructor Summary
Constructors Constructor Description ExprTransformSubstitute(java.util.Map<java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exprtransform(ExprVar exprVar)
-
-
-
Constructor Detail
-
ExprTransformSubstitute
public ExprTransformSubstitute(Var find, Expr replace)
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
public ExprTransformSubstitute(java.util.Map<java.lang.String,Expr> substitutions)
Creates an advanced transform that uses the given map to make substitutions- Parameters:
substitutions- Substitutions from variables to expressions
-
-
Method Detail
-
transform
public Expr transform(ExprVar exprVar)
- Specified by:
transformin interfaceExprTransform- Overrides:
transformin classExprTransformCopy
-
-