public class StackPrinter extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
StackPrinter.ExpressionPrinter
Simply prints expressions, inserting parentheses by priority.
|
protected static class |
StackPrinter.FollowSet
find all sub-expressions of the current content model which can
be entered immediately in the current parsing situation.
|
Modifier and Type | Field and Description |
---|---|
protected Reference |
activeRef
Memoizes the reference which has been entered and is stored in the
next-lower State_singleton.
|
Set<Expression> |
followset
Holds all references the tags of which could be entered in the current
parsing state.
|
protected String |
headerSeparatorString |
protected DiagnosisMarkUp |
markup |
protected PrintWriter |
printwriter |
protected boolean |
showIntermediate |
Modifier | Constructor and Description |
---|---|
protected |
StackPrinter() |
protected |
StackPrinter(DiagnosisMarkUp markup) |
protected |
StackPrinter(DiagnosisMarkUp markup,
PrintWriter pw) |
Modifier and Type | Method and Description |
---|---|
protected void |
doPrintStack(State state) |
protected String |
getRefTag(Reference ref) |
protected void |
print(String text,
boolean active,
boolean possible) |
void |
printStack(State state) |
void |
printStack(State state,
boolean showIntermediate) |
protected String |
stateLabel(State s) |
protected DiagnosisMarkUp markup
protected PrintWriter printwriter
protected String headerSeparatorString
protected boolean showIntermediate
protected Reference activeRef
public Set<Expression> followset
protected StackPrinter()
protected StackPrinter(DiagnosisMarkUp markup)
protected StackPrinter(DiagnosisMarkUp markup, PrintWriter pw)
see also the complete user documentation .