jp.sourceforge.expression_computer.type
クラス FloatingPointLiteral

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

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

浮動小数点値を表します。

作成者:
uguu@users.sourceforge.jp

コンストラクタの概要
FloatingPointLiteral(double 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
 

コンストラクタの詳細

FloatingPointLiteral

public FloatingPointLiteral(double 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.