KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > lsmp > djep > xjep > CommandVisitorI


1 /* @author rich
2  * Created on 19-Jun-2003
3  *
4  * This code is covered by a Creative Commons
5  * Attribution, Non Commercial, Share Alike license
6  * <a HREF="http://creativecommons.org/licenses/by-nc-sa/1.0">License</a>
7  */

8 package org.lsmp.djep.xjep;
9 import org.nfunk.jep.*;
10
11 /**
12  * Interface defining the special actions performed during the preprocess
13  * stage. This interface should be implemented by PostFixMath Commands
14  * which wish to perform a special action during the XJep.preprocess() method.
15  */

16 public interface CommandVisitorI {
17
18     /**
19      * Performs the specified action on an expression tree.
20      * @param node top node of the tree
21      * @param children the children of the node after they have been preprocessed.
22      * @param xjep a reference to the current XJep interface.
23      * @return top node of the results.
24      * @throws ParseException
25      */

26     public Node process(Node node,Node children[],XJep xjep) throws ParseException;
27 }
28
Popular Tags