Package org.smtlib.solvers
Class Printer
java.lang.Object
org.smtlib.sexpr.Printer
org.smtlib.solvers.Printer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.smtlib.sexpr.Printer
Printer.PrintArgs, Printer.WithLinesNested classes/interfaces inherited from interface org.smtlib.IVisitor
IVisitor.TreeVisitor<T>, IVisitor.VisitorException -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPrinter(SMT.Configuration smtConfig, Writer w) Creates a printer object that follows the given Configuration's rules. -
Method Summary
Modifier and TypeMethodDescriptionnewPrinter(Writer w) Creates a new printer of the same type as the receiver, writing to the given Writer.toString(T expr) Returns the argument as a String using a Printer of the same type as the receiver, but does not modify the receiver.static <T extends INode>
voidwrite(SMT.Configuration smtConfig, PrintStream w, T e) Writes the given expression to the given stream, following the given Configuration's rules.static <T extends INode>
voidwrite(SMT.Configuration smtConfig, Writer w, T e) Writes the given expression to the given writer, following the given Configuration's rules.write(SMT.Configuration smtConfig, T e) Writes the given expression and outputs as a String, following the given Configuration's rules.Methods inherited from class org.smtlib.sexpr.Printer
append, error, exc, flush, print, printCommand, printCommand, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, writer
-
Constructor Details
-
Printer
Creates a printer object that follows the given Configuration's rules.
-
-
Method Details
-
newPrinter
Description copied from interface:IPrinterCreates a new printer of the same type as the receiver, writing to the given Writer.- Specified by:
newPrinterin interfaceIPrinter- Overrides:
newPrinterin classPrinter
-
toString
Description copied from class:PrinterReturns the argument as a String using a Printer of the same type as the receiver, but does not modify the receiver. -
write
Writes the given expression and outputs as a String, following the given Configuration's rules. -
write
public static <T extends INode> void write(SMT.Configuration smtConfig, Writer w, T e) throws IVisitor.VisitorException Writes the given expression to the given writer, following the given Configuration's rules.- Throws:
IVisitor.VisitorException
-
write
public static <T extends INode> void write(SMT.Configuration smtConfig, PrintStream w, T e) throws IVisitor.VisitorException Writes the given expression to the given stream, following the given Configuration's rules.- Throws:
IVisitor.VisitorException
-
visit
-
visit
-