public abstract class AbstractPrinterCommand extends AbstractCommand implements PrintPropertiesKeys
Modifier and Type | Field and Description |
---|---|
protected String |
onTheFlySectName_
When printing a pred/expr/para on the fly sectionName from doCompute is null,
yet we need to have a section name to print, usually something "on-the-fly".
|
protected Boolean |
printStructuredGoal_ |
protected Integer |
printTextWidth_ |
PROP_PRINT_NAME_IDS, PROP_PRINT_NAME_IDS_DEFAULT, PROP_PRINT_ZEVES, PROP_PRINT_ZEVES_DEFAULT, PROP_PRINTING_ONTHEFLY_SECTION_NAME, PROP_PRINTING_ONTHEFLY_SECTION_NAME_DEFAULT, PROP_PRINTING_STRUCTURED_GOAL, PROP_PRINTING_STRUCTURED_GOAL_DEFAULT, PROP_TXT_TAB_SIZE, PROP_TXT_TAB_SIZE_DEFAULT, PROP_TXT_WIDTH, PROP_TXT_WIDTH_DEFAULT
Constructor and Description |
---|
AbstractPrinterCommand() |
Modifier and Type | Method and Description |
---|---|
protected PrettyPrinter |
createPrettyPrinter(net.sourceforge.czt.base.ast.Term term,
int textWidth) |
protected TokenSequenceVisitor |
createTokenSequenceVisitor(SectionInfo si,
ZPrinter printer,
Properties props) |
protected TokenSequence |
doToUnicode(ZPrinter printer,
net.sourceforge.czt.base.ast.Term term,
SectionManager sectInfo,
String sectionName,
Properties props)
Method to be called by the SectionManager Command: properties are the ones
processed via the SectionManager.
|
protected net.sourceforge.czt.base.ast.Term |
preprocess(net.sourceforge.czt.base.ast.Term term,
SectionManager manager,
String section) |
protected void |
processProperties(Properties props) |
protected void |
processProperties(SectionManager manager) |
protected net.sourceforge.czt.base.ast.Term |
toPrintTree(AstToPrintTreeVisitor toPrintTree,
net.sourceforge.czt.base.ast.Term term,
String sectionName) |
TokenSequence |
toUnicode(ZPrinter printer,
net.sourceforge.czt.base.ast.Term term,
SectionManager sectInfo,
String sectionName,
Properties props)
Creates a sequence of tokens for printing.
|
compute, doCompute, traceInfo, traceLog
protected Integer printTextWidth_
protected Boolean printStructuredGoal_
protected String onTheFlySectName_
protected void processProperties(SectionManager manager)
processProperties
in class AbstractCommand
protected void processProperties(Properties props)
public TokenSequence toUnicode(ZPrinter printer, net.sourceforge.czt.base.ast.Term term, SectionManager sectInfo, String sectionName, Properties props) throws PrintException
printer
- printer adaptor to be used by TokenSequenceterm
- term to printsectInfo
- section managersectionName
- section nameprops
- propertiesPrintException
protected TokenSequence doToUnicode(ZPrinter printer, net.sourceforge.czt.base.ast.Term term, SectionManager sectInfo, String sectionName, Properties props)
printer
- term
- sectInfo
- sectionName
- props
- protected PrettyPrinter createPrettyPrinter(net.sourceforge.czt.base.ast.Term term, int textWidth)
protected TokenSequenceVisitor createTokenSequenceVisitor(SectionInfo si, ZPrinter printer, Properties props)
protected net.sourceforge.czt.base.ast.Term preprocess(net.sourceforge.czt.base.ast.Term term, SectionManager manager, String section) throws PrintException
PrintException
protected net.sourceforge.czt.base.ast.Term toPrintTree(AstToPrintTreeVisitor toPrintTree, net.sourceforge.czt.base.ast.Term term, String sectionName) throws PrintException
PrintException
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.