Class IrUnion
java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.ir.IrNode
org.eclipse.rdf4j.queryrender.sparql.ir.IrUnion
Textual IR node representing a UNION with multiple branches.
Notes: - Each branch is an
IrBGP printed as its own braced group. The printer will insert a centered UNION
line between groups to match canonical style. - newScope can be used by transforms as a hint that this UNION
represents an explicit user UNION that introduced a new variable scope; some fusions avoid re-association across such
boundaries.-
Field Summary
Fields inherited from class IrNode
_className -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class IrNode
isNewScope, setNewScope
-
Constructor Details
-
IrUnion
public IrUnion(boolean newScope)
-
-
Method Details
-
getBranches
-
addBranch
-
print
-
transformChildren
Description copied from class:IrNodeFunction-style child transformation hook used by the transform pipeline to descend into nested structures. Contract: - Leaf nodes returnthisunchanged. - Container nodes return a new instance with their immediate children transformed using the provided operator. - Implementations must not mutatethisor its existing children.- Overrides:
transformChildrenin classIrNode
-
toString
-
getVars
Description copied from class:IrNodeCollect variables referenced by this node and all of its children (if any). Default implementation returns an empty set; container and triple-like nodes override to include their own Vars and recurse into child nodes.
-