Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.lsmp.djep.xjep
Interface PrintVisitor.PrintRulesI

All Known Implementing Classes:
  MArrayAccess, MList

Enclosing class:
  PrintVisitor

    public static interface PrintVisitor.PrintRulesI

This interface specifies the method needed to implement a special print rule. A special rule must implement the append method, which should call pv.append to add data to the output. For example

            pv.addSpecialRule(Operator.OP_LIST,new PrintVisitor.PrintRulesI()
            {
            public void append(Node node,PrintVisitor pv) throws ParseException
                    {
                            pv.append("[");
                            for(int i=0;i0) pv.append(",");
                                    node.jjtGetChild(i).jjtAccept(pv, null);
                            }
                            pv.append("]");
                    }});

Author:
  Rich Morris Created on 21-Feb-2004

Method Summary
`void` | `append(Node node, PrintVisitor pv)` The method called to append data for the rule.

Method Detail

### append

    void append(Node node,
                PrintVisitor pv)
                throws ParseException

  The method called to append data for the rule.

  Throws:
    `ParseException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

http://www.singularsys.com/jep Copyright © 2007 Singular Systems