coins.simd
クラス Evaluation
java.lang.Object
|
+--coins.simd.Evaluation
- class Evaluation
- extends java.lang.Object
This class is for Constant Folding.
The evaluation of expressions in Constant Folding uses the
method in this class.
The method for evaluation is depend on the type of the expression.
Then 7 types of method is in this class.
Byte for I8, Short for I16, Integer for I32,
Long for I64, Float for F32, Double for F64,
and BigDecimal for F128.
メソッドの概要 |
static java.lang.Number |
calc(double arg1,
double arg2,
java.lang.String op)
|
static java.lang.Number |
calc(float arg1,
float arg2,
java.lang.String op)
|
static java.lang.Number |
calc(int arg1,
int arg2,
java.lang.String op)
The evaluation method for I32. |
static java.lang.Number |
calc(long arg1,
long arg2,
java.lang.String op)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Evaluation
Evaluation()
calc
public static java.lang.Number calc(int arg1,
int arg2,
java.lang.String op)
- The evaluation method for I32.
- 戻り値:
- Number The result of evaluation
calc
public static java.lang.Number calc(long arg1,
long arg2,
java.lang.String op)
calc
public static java.lang.Number calc(float arg1,
float arg2,
java.lang.String op)
calc
public static java.lang.Number calc(double arg1,
double arg2,
java.lang.String op)