jp.sourceforge.expression_computer.type
クラス IntegerLiteral

java.lang.Object
  拡張jp.sourceforge.expression_computer.type.IntegerLiteral
すべての実装インタフェース:
ComputeObject

public final class IntegerLiteral
extends java.lang.Object
implements ComputeObject

整数値を表します。

作成者:
uguu@users.sourceforge.jp

コンストラクタの概要
IntegerLiteral(long value)
           インスタンスを初期化します。
 
メソッドの概要
 double getValue(ComputeContext context)
          

保持している値を返します。

 void setValue(double value, ComputeContext context)
           整数値の値を変更する事はできません。
 java.lang.String toString()
          
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

IntegerLiteral

public IntegerLiteral(long value)

インスタンスを初期化します。

パラメータ:
value - 値。
メソッドの詳細

getValue

public double getValue(ComputeContext context)

保持している値を返します。

定義:
インタフェース ComputeObject 内の getValue
パラメータ:
context - 計算コンテキスト。
戻り値:
保持している値。

setValue

public void setValue(double value,
                     ComputeContext context)

整数値の値を変更する事はできません。常にComputeException例外をスローします。

定義:
インタフェース ComputeObject 内の setValue
パラメータ:
value - 値。
context - 計算コンテキスト。

toString

public java.lang.String toString()



Copyright © 2006 SourceForge.jp. All Rights Reserved.