|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface Operator
演算実行インターフェース.
eval()において、実際の演算を実行するクラスの為のインターフェース。
Expression.setOperator(Operator)
,
Expression.eval()
メソッドの概要 | |
---|---|
Object |
bitAnd(Object x,
Object y)
ビット論理積. |
Object |
bitNot(Object x)
ビット否定. |
Object |
bitOr(Object x,
Object y)
ビット論理和. |
Object |
bitXor(Object x,
Object y)
ビット排他的論理和. |
boolean |
bool(Object x)
真偽値. |
Object |
div(Object x,
Object y)
除算. |
Object |
equal(Object x,
Object y)
等号. |
Object |
greaterEqual(Object x,
Object y)
以上. |
Object |
greaterThan(Object x,
Object y)
より大. |
Object |
inc(Object x,
int inc)
インクリメント・デクリメント |
Object |
lessEqual(Object x,
Object y)
以下. |
Object |
lessThan(Object x,
Object y)
より小. |
Object |
minus(Object x,
Object y)
減算. |
Object |
mod(Object x,
Object y)
余算. |
Object |
mult(Object x,
Object y)
乗算. |
Object |
not(Object x)
否定. |
Object |
notEqual(Object x,
Object y)
不等号. |
Object |
plus(Object x,
Object y)
加算. |
Object |
power(Object x,
Object y)
累乗演算. |
Object |
shiftLeft(Object x,
Object y)
左シフト. |
Object |
shiftRight(Object x,
Object y)
右シフト. |
Object |
shiftRightLogical(Object x,
Object y)
論理右シフト. |
Object |
signMinus(Object x)
負符号演算. |
Object |
signPlus(Object x)
正符号演算. |
メソッドの詳細 |
---|
Object power(Object x, Object y)
x
- y
-
Object signPlus(Object x)
x
-
Object signMinus(Object x)
x
-
Object plus(Object x, Object y)
x
- y
-
Object minus(Object x, Object y)
x
- y
-
Object mult(Object x, Object y)
x
- y
-
Object div(Object x, Object y)
x
- y
-
Object mod(Object x, Object y)
x
- y
-
Object bitNot(Object x)
x
-
Object shiftLeft(Object x, Object y)
x
- y
-
Object shiftRight(Object x, Object y)
x
- y
-
Object shiftRightLogical(Object x, Object y)
x
- y
-
Object bitAnd(Object x, Object y)
x
- y
-
Object bitOr(Object x, Object y)
x
- y
-
Object bitXor(Object x, Object y)
x
- y
-
Object not(Object x)
x
-
Object equal(Object x, Object y)
x
- y
-
Object notEqual(Object x, Object y)
x
- y
-
Object lessThan(Object x, Object y)
x
- y
-
Object lessEqual(Object x, Object y)
x
- y
-
Object greaterThan(Object x, Object y)
x
- y
-
Object greaterEqual(Object x, Object y)
x
- y
-
boolean bool(Object x)
オブジェクトを真偽値に変換する。
x
-
Object inc(Object x, int inc)
x
- inc
- インクリメントのとき+1、デクリメントのとき-1
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |