de.rwth.dfa.jvm.samples
Class CFPAbstraction.ConversionFunction
java.lang.Object
|
+--de.rwth.dfa.jvm.samples.CPAbstraction.CPFunction
|
+--de.rwth.dfa.jvm.samples.CFPAbstraction.ArithmeticFunction
|
+--de.rwth.dfa.jvm.samples.CFPAbstraction.ConversionFunction
- All Implemented Interfaces:
- Function
- Enclosing class:
- CFPAbstraction
- protected class CFPAbstraction.ConversionFunction
- extends CFPAbstraction.ArithmeticFunction
Conversion functions.
|
Method Summary |
java.lang.Number |
evaluate(java.lang.Number[] values)
Supposed to do the actual operation. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LONG_CONV
protected static final int LONG_CONV
INT_CONV
protected static final int INT_CONV
DOUBLE_CONV
protected static final int DOUBLE_CONV
FLOAT_CONV
protected static final int FLOAT_CONV
SHORT_CONV
protected static final int SHORT_CONV
BYTE_CONV
protected static final int BYTE_CONV
CHAR_CONV
protected static final int CHAR_CONV
target
protected int target
- Target type of conversion. Must be one of the constants in this class.
CFPAbstraction.ConversionFunction
public CFPAbstraction.ConversionFunction(int target,
int consume,
int produce)
- Creates a new
ConversionFunction instance.
- Parameters:
target - an int valueconsume - an int valueproduce - an int value
evaluate
public java.lang.Number evaluate(java.lang.Number[] values)
throws FunctionException
- Description copied from class:
CFPAbstraction.ArithmeticFunction
- Supposed to do the actual operation.
- Overrides:
evaluate in class CFPAbstraction.ArithmeticFunction
- Following copied from class:
de.rwth.dfa.jvm.samples.CFPAbstraction.ArithmeticFunction
- Parameters:
values - a Number[] value- Returns:
- a
Number value - Throws:
FunctionException - if an error occurs
toString
public java.lang.String toString()
- Overrides:
toString in class CFPAbstraction.ArithmeticFunction