protected static class StackPrinter.ExpressionPrinter extends SinglePhase
Modifier and Type | Field and Description |
---|---|
protected int |
precedence |
protected PrintWriter |
pw |
_visitor_debug_stream, partial
Constructor and Description |
---|
ExpressionPrinter(PrintWriter pw) |
Modifier and Type | Method and Description |
---|---|
void |
action(Alt x) |
void |
action(CharCut x) |
void |
action(CharJoin x) |
void |
action(CharMinus x) |
void |
action(CharRange x) |
void |
action(CharSetConst x) |
void |
action(Insertion x) |
void |
action(Opt x) |
void |
action(ParseParticle x) |
void |
action(Pcdata x) |
void |
action(Perm x) |
void |
action(Plus x) |
void |
action(Reference x) |
void |
action(Seq x) |
void |
action(Star x) |
void |
action(StringConst x) |
void |
action(Subst x) |
protected void |
printMult(Collection<Expression> subs,
String sep,
int prec)
Prints the argument sequence of Seq/Alt/Perm and puts parentheses iff the
precedence decreases.
|
protected void |
printPar(Expression x)
Prints the the contents of a modifier Opt/Star/Plus.
|
action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action, action
_visitor_trace, action, action, action, action, foreignObject, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, nomatch
protected PrintWriter pw
protected int precedence
public ExpressionPrinter(PrintWriter pw)
public void action(Reference x)
action
in class SinglePhase
public void action(Pcdata x)
action
in class SinglePhase
protected void printPar(Expression x)
public void action(Opt x)
action
in class SinglePhase
public void action(Star x)
action
in class SinglePhase
public void action(Plus x)
action
in class SinglePhase
protected void printMult(Collection<Expression> subs, String sep, int prec)
public void action(Alt x)
action
in class SinglePhase
public void action(Seq x)
action
in class SinglePhase
public void action(Perm x)
action
in class SinglePhase
public void action(Insertion x)
action
in class SinglePhase
public void action(CharJoin x)
action
in class SinglePhase
public void action(CharCut x)
action
in class SinglePhase
public void action(CharMinus x)
action
in class SinglePhase
public void action(CharRange x)
action
in class SinglePhase
public void action(ParseParticle x)
action
in class SinglePhase
public void action(CharSetConst x)
action
in class SinglePhase
public void action(StringConst x)
action
in class SinglePhase
public void action(Subst x)
action
in class SinglePhase
see also the complete user documentation .