Package net.sf.basedb.util.jep
Class FunctionSafeJep.UnknownFunction
java.lang.Object
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkNumberOfParameters
(int numParameters) int
void
void
setCurNumberOfParameters
(int numParameters)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
-
Constructor Details
-
UnknownFunction
UnknownFunction(String name)
-
-
Method Details
-
checkNumberOfParameters
public boolean checkNumberOfParameters(int numParameters) - Specified by:
checkNumberOfParameters
in interfaceorg.nfunk.jep.function.PostfixMathCommandI
-
getNumberOfParameters
public int getNumberOfParameters()- Specified by:
getNumberOfParameters
in interfaceorg.nfunk.jep.function.PostfixMathCommandI
-
run
- Specified by:
run
in interfaceorg.nfunk.jep.function.PostfixMathCommandI
- Throws:
ParseException
-
setCurNumberOfParameters
public void setCurNumberOfParameters(int numParameters) - Specified by:
setCurNumberOfParameters
in interfaceorg.nfunk.jep.function.PostfixMathCommandI
-