public class PrettyPrinter extends PrettyPrinter
Modifier and Type | Field and Description |
---|---|
protected boolean |
formatProofGoal_ |
Constructor and Description |
---|
PrettyPrinter(net.sourceforge.czt.base.ast.Term term,
int initW) |
PrettyPrinter(net.sourceforge.czt.base.ast.Term term,
int initW,
boolean formatProofG) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
considerAddingNL(Token previous,
Token current,
int spaceLeft,
int length,
boolean startedProcessing) |
protected boolean |
considerAddingNLForToken(Token previous,
Token current,
int spaceLeft,
int length,
boolean startedProcessing) |
protected int |
handleSpaces(ListIterator<Token> iter,
Token previous,
Token current,
int spaceLeft,
int length,
boolean startedProcessing,
int indentAmount) |
boolean |
isFormattingProofGoals() |
protected boolean |
isSpecialTokenCase(Token previous,
Token current) |
void |
setFormatProofGoal(boolean v) |
allowsNlAfter, allowsNlBefore, getOffSet, getTerm, handleTokenSequence, handleTokenSequence, isSpecialCase, setLineWidth, setOffset
public PrettyPrinter(net.sourceforge.czt.base.ast.Term term, int initW)
public PrettyPrinter(net.sourceforge.czt.base.ast.Term term, int initW, boolean formatProofG)
public void setFormatProofGoal(boolean v)
public boolean isFormattingProofGoals()
protected int handleSpaces(ListIterator<Token> iter, Token previous, Token current, int spaceLeft, int length, boolean startedProcessing, int indentAmount) throws PrintException
handleSpaces
in class PrettyPrinter
PrintException
protected boolean isSpecialTokenCase(Token previous, Token current) throws PrintException
isSpecialTokenCase
in class PrettyPrinter
PrintException
protected boolean considerAddingNL(Token previous, Token current, int spaceLeft, int length, boolean startedProcessing) throws PrintException
considerAddingNL
in class PrettyPrinter
PrintException
protected boolean considerAddingNLForToken(Token previous, Token current, int spaceLeft, int length, boolean startedProcessing) throws PrintException
considerAddingNLForToken
in class PrettyPrinter
PrintException
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.