2.17.2: 2011-06-17

net.sf.basedb.util.jep
Class FunctionSafeJep.UnknownFunction

java.lang.Object
  extended by net.sf.basedb.util.jep.FunctionSafeJep.UnknownFunction
All Implemented Interfaces:
Serializable, org.nfunk.jep.function.PostfixMathCommandI
Enclosing class:
FunctionSafeJep

static class FunctionSafeJep.UnknownFunction
extends Object
implements org.nfunk.jep.function.PostfixMathCommandI, Serializable

Represents an unknown function that appears in an expression. The error is usually catched at parse time, otherwise it will be catched at evaluation time by this class.


Field Summary
private  String name
           
private static long serialVersionUID
           
 
Constructor Summary
FunctionSafeJep.UnknownFunction(String name)
           
 
Method Summary
 boolean checkNumberOfParameters(int numParameters)
           
 int getNumberOfParameters()
           
 void run(Stack paramStack)
           
 void setCurNumberOfParameters(int numParameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

name

private final String name
Constructor Detail

FunctionSafeJep.UnknownFunction

FunctionSafeJep.UnknownFunction(String name)
Method Detail

checkNumberOfParameters

public boolean checkNumberOfParameters(int numParameters)
Specified by:
checkNumberOfParameters in interface org.nfunk.jep.function.PostfixMathCommandI

getNumberOfParameters

public int getNumberOfParameters()
Specified by:
getNumberOfParameters in interface org.nfunk.jep.function.PostfixMathCommandI

run

public void run(Stack paramStack)
         throws ParseException
Specified by:
run in interface org.nfunk.jep.function.PostfixMathCommandI
Throws:
ParseException

setCurNumberOfParameters

public void setCurNumberOfParameters(int numParameters)
Specified by:
setCurNumberOfParameters in interface org.nfunk.jep.function.PostfixMathCommandI

2.17.2: 2011-06-17