Class IrBGP
java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.ir.IrNode
org.eclipse.rdf4j.queryrender.sparql.ir.IrBGP
Textual IR for a WHERE/group block: ordered list of lines/nodes.
Semantics: - Lines typically include triples (
IrStatementPattern or IrPathTriple), modifiers
(IrFilter, IrBind, IrValues), and container blocks such as IrGraph,
IrOptional, IrMinus, IrUnion, IrService. - Order matters: most transforms preserve
relative order except where a local, safe rewrite explicitly requires adjacency. - Printing is delegated to
IrPrinter; indentation and braces are handled there.-
Field Summary
Fields inherited from class IrNode
_className -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetLines()getVars()Collect variables referenced by this node and all of its children (if any).voidDefault no-op printing; concrete nodes override.toString()Function-style child transformation hook used by the transform pipeline to descend into nested structures.Methods inherited from class IrNode
isNewScope, setNewScope
-
Constructor Details
-
IrBGP
public IrBGP(boolean newScope) -
IrBGP
-
IrBGP
-
-
Method Details
-
getLines
-
add
-
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.
-