Class IRTextPrinter
java.lang.Object
org.eclipse.rdf4j.queryrender.sparql.ir.IRTextPrinter
- All Implemented Interfaces:
IrPrinter
-
Constructor Summary
ConstructorsConstructorDescriptionIRTextPrinter(StringBuilder out, Function<Var, String> varFormatter, TupleExprIRRenderer.Config cfg) -
Method Summary
Modifier and TypeMethodDescriptionvoidAppend text to the current line (starting a new, indented line if none is active).voidvoidendLine()End the current line (no-op if none is active).voidvoidvoidvoidprintLines(List<IrNode> lines) Print a sequence of IR lines (helper for containers).voidprintWhere(IrBGP w) Print only a WHERE block body.voidvoidStart a new logical line and prepare for inline appends.
-
Constructor Details
-
IRTextPrinter
public IRTextPrinter(StringBuilder out, Function<Var, String> varFormatter, TupleExprIRRenderer.Config cfg)
-
-
Method Details
-
printWhere
Print only a WHERE block body. -
printLines
Print a sequence of IR lines (helper for containers).- Specified by:
printLinesin interfaceIrPrinter
-
startLine
-
append
-
endLine
-
line
-
openBlock
-
closeBlock
public void closeBlock()- Specified by:
closeBlockin interfaceIrPrinter
-
pushIndent
public void pushIndent()- Specified by:
pushIndentin interfaceIrPrinter
-
popIndent
-
convertVarToString
- Specified by:
convertVarToStringin interfaceIrPrinter
-