public final class PrintUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
print(net.sourceforge.czt.base.ast.Term term,
Writer out,
SectionManager sectInfo,
Markup markup)
Prints a given term (usually a Spec or Sect) in the specified
markup to the given writer.
|
static void |
print(net.sourceforge.czt.base.ast.Term term,
Writer out,
SectionManager sectInfo,
String sectName,
Markup markup) |
static CztPrintString |
printCztStringOf(String name,
SectionManager sectInfo,
Markup markup)
Prints the given name in the given markup using CztPrintString.
|
public static void print(net.sourceforge.czt.base.ast.Term term,
Writer out,
SectionManager sectInfo,
Markup markup)
throws PrintException
net.sourceforge.czt.parser.util.OpTable.class
and
net.sourceforge.czt.parser.util.LatexMarkupTable.class.
This method may be used for terms like Spec and Sect that contain
a section header so that context information can be obtained from
the tree itself. See #print(Term,Writer,SectionInfo,String,Markup) for
writing trees that do not contain context information.term - out - sectInfo - markup - PrintExceptionpublic static void print(net.sourceforge.czt.base.ast.Term term,
Writer out,
SectionManager sectInfo,
String sectName,
Markup markup)
throws PrintException
PrintExceptionpublic static CztPrintString printCztStringOf(String name, SectionManager sectInfo, Markup markup) throws CommandException
name - resource namesectInfo - sect managermarkup - which markupCommandException - if ZSect cannot be processed by the section manager, or if it cannot be printed.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.