Class ElementTransformSubst

java.lang.Object
org.apache.jena.sparql.syntax.syntaxtransform.ElementTransformCopyBase
org.apache.jena.sparql.syntax.syntaxtransform.ElementTransformSubst
All Implemented Interfaces:
ElementTransform

public class ElementTransformSubst extends ElementTransformCopyBase
An ElementTransform which replaces occurrences of a variable with a Node value. Because a Var is a subclass of Node_Variable which is a Node, this includes variable renaming.

This is a transformation on the syntax - all occurrences of a variable are replaced, even inside sub-select's regardless of being in a projection (which means it is effectively a different variable).

This class does no validity checking. See QuerySyntaxSubstituteScope for checks.