org.lsmp.djep.webJep
Class readCVS

java.lang.Object
  extended by org.nfunk.jep.function.PostfixMathCommand
      extended by org.lsmp.djep.webJep.readCVS
All Implemented Interfaces:
CommandVisitorI, PostfixMathCommandI

public class readCVS
extends PostfixMathCommand
implements CommandVisitorI


Field Summary
 
Fields inherited from class org.nfunk.jep.function.PostfixMathCommand
curNumberOfParameters, numberOfParameters
 
Constructor Summary
readCVS()
           
 
Method Summary
 int getNumberOfParameters()
          Return the required number of parameters.
 Node process(Node node, Node[] children, XJep xjep)
          Reads in data from file in process stage.
 void run(java.util.Stack aStack)
          Throws an exception because this method should never be called under normal circumstances.
 void setCurNumberOfParameters(int n)
          Sets the number of current number of parameters used in the next call of run().
 
Methods inherited from class org.nfunk.jep.function.PostfixMathCommand
checkNumberOfParameters, checkStack
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

readCVS

public readCVS()
Method Detail

run

public void run(java.util.Stack aStack)
         throws ParseException
Description copied from class: PostfixMathCommand
Throws an exception because this method should never be called under normal circumstances. Each function should use it's own run() method for evaluating the function. This includes popping off the parameters from the stack, and pushing the result back on the stack.

Specified by:
run in interface PostfixMathCommandI
Overrides:
run in class PostfixMathCommand
Throws:
ParseException

getNumberOfParameters

public int getNumberOfParameters()
Description copied from class: PostfixMathCommand
Return the required number of parameters.

Specified by:
getNumberOfParameters in interface PostfixMathCommandI
Overrides:
getNumberOfParameters in class PostfixMathCommand

setCurNumberOfParameters

public void setCurNumberOfParameters(int n)
Description copied from class: PostfixMathCommand
Sets the number of current number of parameters used in the next call of run(). This method is only called when the reqNumberOfParameters is -1.

Specified by:
setCurNumberOfParameters in interface PostfixMathCommandI
Overrides:
setCurNumberOfParameters in class PostfixMathCommand

process

public Node process(Node node,
                    Node[] children,
                    XJep xjep)
             throws ParseException
Reads in data from file in process stage.

Specified by:
process in interface CommandVisitorI
Parameters:
node - top node of the tree
children - the children of the node after they have been preprocessed.
xjep - a reference to the current XJep interface.
Returns:
top node of the results.
Throws:
ParseException


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