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