public abstract static class Funcs.NUMCOMP extends Funcs.FuncExp implements AbstractOp
argList
debugInfo, name
Constructor and Description |
---|
NUMCOMP() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
compareResult(int res) |
Number |
doDoubleOp(Number arg1,
Number arg2)
Do operation on Double type operands.
|
Number |
doFloatOp(Number arg1,
Number arg2)
Do operation on Float type operands.
|
Number |
doIntOp(Number arg1,
Number arg2)
Do operation on integer type operands (Long, Integer, Short,
Byte).
|
Number |
doVersionOp(Number arg1,
Number arg2)
Do operation on Version types operands.
|
Object |
evalWithArgs(Backtrace backtrace,
Compiler.Eargs eargs) |
checkParamsList, doEvaluate, evaluateParameters, getTraceName, setParams
evaluate, getDebugInfo, getName, run, setDebugInfo, setName
public Object evalWithArgs(Backtrace backtrace, Compiler.Eargs eargs)
evalWithArgs
in class Funcs.FuncExp
public Number doIntOp(Number arg1, Number arg2)
AbstractOp
doIntOp
in interface AbstractOp
public Number doDoubleOp(Number arg1, Number arg2)
AbstractOp
At least one of operands must be Double, rest may be integer types or Float.
doDoubleOp
in interface AbstractOp
public Number doVersionOp(Number arg1, Number arg2)
AbstractOp
At least one of operands must be Version, others may be other numeric types.
doVersionOp
in interface AbstractOp
public Number doFloatOp(Number arg1, Number arg2)
AbstractOp
At least one of operands must be Float, the rest may be integer types.
doFloatOp
in interface AbstractOp
protected abstract boolean compareResult(int res)
Copyright © 2022. All rights reserved.