public class ElementTransformSubst extends ElementTransformCopyBase
ElementTransform which replaces occurences 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 occurences of a variable are replaced, even if inside sub-select's and not project (which means it is effectively a different variable).
| Constructor and Description |
|---|
ElementTransformSubst(Map<Var,Node> mapping) |
| Modifier and Type | Method and Description |
|---|---|
Element |
transform(ElementPathBlock el) |
Element |
transform(ElementTriplesBlock el) |
public Element transform(ElementTriplesBlock el)
transform in interface ElementTransformtransform in class ElementTransformCopyBasepublic Element transform(ElementPathBlock el)
transform in interface ElementTransformtransform in class ElementTransformCopyBaseLicenced under the Apache License, Version 2.0