jp.hishidama.eval.oper
インタフェース Operator

既知の実装クラスの一覧:
JavaExOperator

public interface Operator

演算実行インターフェース.

eval()において、実際の演算を実行するクラスの為のインターフェース。

導入されたバージョン:
2007.02.15
バージョン:
2007.02.16
作成者:
ひしだま
関連項目:
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)
          正符号演算.
 

メソッドの詳細

power

Object power(Object x,
             Object y)
累乗演算.

パラメータ:
x -
y -
戻り値:
導入されたバージョン:
2007.02.16

signPlus

Object signPlus(Object x)
正符号演算.

パラメータ:
x -
戻り値:

signMinus

Object signMinus(Object x)
負符号演算.

パラメータ:
x -
戻り値:

plus

Object plus(Object x,
            Object y)
加算.

パラメータ:
x -
y -
戻り値:

minus

Object minus(Object x,
             Object y)
減算.

パラメータ:
x -
y -
戻り値:

mult

Object mult(Object x,
            Object y)
乗算.

パラメータ:
x -
y -
戻り値:

div

Object div(Object x,
           Object y)
除算.

パラメータ:
x -
y -
戻り値:

mod

Object mod(Object x,
           Object y)
余算.

パラメータ:
x -
y -
戻り値:

bitNot

Object bitNot(Object x)
ビット否定.

パラメータ:
x -
戻り値:

shiftLeft

Object shiftLeft(Object x,
                 Object y)
左シフト.

パラメータ:
x -
y -
戻り値:

shiftRight

Object shiftRight(Object x,
                  Object y)
右シフト.

パラメータ:
x -
y -
戻り値:

shiftRightLogical

Object shiftRightLogical(Object x,
                         Object y)
論理右シフト.

パラメータ:
x -
y -
戻り値:

bitAnd

Object bitAnd(Object x,
              Object y)
ビット論理積.

パラメータ:
x -
y -
戻り値:

bitOr

Object bitOr(Object x,
             Object y)
ビット論理和.

パラメータ:
x -
y -
戻り値:

bitXor

Object bitXor(Object x,
              Object y)
ビット排他的論理和.

パラメータ:
x -
y -
戻り値:

not

Object not(Object x)
否定.

パラメータ:
x -
戻り値:

equal

Object equal(Object x,
             Object y)
等号.

パラメータ:
x -
y -
戻り値:

notEqual

Object notEqual(Object x,
                Object y)
不等号.

パラメータ:
x -
y -
戻り値:

lessThan

Object lessThan(Object x,
                Object y)
より小.

パラメータ:
x -
y -
戻り値:

lessEqual

Object lessEqual(Object x,
                 Object y)
以下.

パラメータ:
x -
y -
戻り値:

greaterThan

Object greaterThan(Object x,
                   Object y)
より大.

パラメータ:
x -
y -
戻り値:

greaterEqual

Object greaterEqual(Object x,
                    Object y)
以上.

パラメータ:
x -
y -
戻り値:

bool

boolean bool(Object x)
真偽値.

オブジェクトを真偽値に変換する。

パラメータ:
x -
戻り値:
真偽値

inc

Object inc(Object x,
           int inc)
インクリメント・デクリメント

パラメータ:
x -
inc - インクリメントのとき+1、デクリメントのとき-1
戻り値: