public static interface PrintVisitor.PrintRulesI
extends java.io.Serializable
For example
pv.addSpecialRule(Operator op,new PrintVisitor.PrintRulesI() { public void append(Node node, PrintVisitor pv) throws ParseException { pv.append("["); for(int i=0;i<node.jjtGetNumChildren();++i) { if(i>0) pv.append(","); node.jjtGetChild(i).jjtAccept(pv, null); } pv.append("]"); }});
Modifier and Type | Method and Description |
---|---|
void |
append(Node node,
PrintVisitor pv)
The method called to append data for the rule.
|
void append(Node node, PrintVisitor pv) throws JepException
node
- the node to printpv
- the PrintVisitorJepException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep