com.bc.jexp.impl
Class AbstractFunction.D
java.lang.Object
com.bc.jexp.impl.AbstractFunction
com.bc.jexp.impl.AbstractFunction.D
- All Implemented Interfaces:
- Function
- Enclosing class:
- AbstractFunction
public abstract static class AbstractFunction.D
- extends AbstractFunction
|
Method Summary |
boolean |
evalB(EvalEnv env,
Term[] args)
Evaluates this function to a double value. |
int |
evalI(EvalEnv env,
Term[] args)
Evaluates this function to an int value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFunction.D
public AbstractFunction.D(String name,
int numArgs)
AbstractFunction.D
public AbstractFunction.D(String name,
int numArgs,
int[] argTypes)
evalB
public boolean evalB(EvalEnv env,
Term[] args)
throws EvalException
- Description copied from interface:
Function
- Evaluates this function to a
double value.
- Parameters:
env - the application dependant environment.args - the (un-evaluated) arguments passed to the function
- Returns:
- a
double value
- Throws:
EvalException - if the evaluation fails
evalI
public int evalI(EvalEnv env,
Term[] args)
throws EvalException
- Description copied from interface:
Function
- Evaluates this function to an
int value.
- Parameters:
env - the application dependant environment.args - the (un-evaluated) arguments passed to the function
- Returns:
- an
int value
- Throws:
EvalException - if the evaluation fails
Copyright © 2002-2013 Brockmann Consult GmbH. All Rights Reserved.