|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Objectjp.co.nissy.jpicosheet.core.Element
public class Element
計算式の各要素を表す不変のオブジェクトです。
CellクラスからgetValue()で値を取得した際に渡されるのもこのクラスのオブジェクトです。
| 入れ子のクラスの概要 | |
|---|---|
static class |
Element.ElementType
このエレメントの種類を表します |
static class |
Element.ErrorType
エレメントのタイプがErrorの場合に、エラーの種類を表します |
static class |
Element.Operator
オペレータの種類を表します。 |
| コンストラクタの概要 | |
|---|---|
Element(Element.ElementType tokenType)
トークンのタイプを使ってオブジェクトを初期化します。 |
|
Element(Element.ElementType tokenType,
Object value)
トークンのタイプと値を使ってオブジェクトを初期化します 値にはトークンのタイプにより以下を与える必要があります。 |
|
| メソッドの概要 | |
|---|---|
boolean |
equals(Object obj)
|
String |
getCellReference()
セル参照情報を返します |
Date |
getDate()
日時情報を返します |
Element.ErrorType |
getErrorType()
エラーのタイプを返します |
String |
getGroupReference()
グループ参照情報を返します |
BigDecimal |
getNumber()
数値情報を返します |
Element.Operator |
getOperator()
オペレータ情報を返します |
String |
getString()
文字列情報を返します |
String |
getTableReference()
テーブル参照情報を返します |
Element.ElementType |
getType()
タイプを返します |
int |
hashCode()
|
String |
toString()
|
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Element(Element.ElementType tokenType,
Object value)
tokenType - トークン種類を示す列挙型value - 値
IllegalArgumentException - 指定したトークン種類に合わない値を指定した場合public Element(Element.ElementType tokenType)
tokenType - | メソッドの詳細 |
|---|
public Element.ElementType getType()
public Element.ErrorType getErrorType()
throws IllegalStateException
IllegalStateException - エレメントのタイプがエラー以外でこのメソッドを呼び出した場合
public String getCellReference()
throws IllegalStateException
IllegalStateException - エレメントのタイプが参照以外でこのメソッドを呼び出した場合public String getGroupReference()
IllegalStateException - エレメントのタイプがグループ参照以外でこのメソッドを呼び出した場合public String getTableReference()
IllegalStateException - エレメントのタイプがテーブル参照以外でこのメソッドを呼び出した場合
public Element.Operator getOperator()
throws IllegalStateException
IllegalStateException - エレメントのタイプがオペレータ以外でこのメソッドを呼び出した場合
public BigDecimal getNumber()
throws IllegalStateException
IllegalStateException - エレメントのタイプが空もしくは数値情報以外でこのメソッドを呼び出した場合
public String getString()
throws IllegalStateException
IllegalStateException - エレメントのタイプが空、文字列、参照、エラー以外でこのメソッドを呼び出した場合
public Date getDate()
throws IllegalStateException
IllegalStateException - エレメントのタイプが空もしくは日時情報以外でこのメソッドを呼び出した場合public String toString()
Object 内の toStringpublic boolean equals(Object obj)
Object 内の equalspublic int hashCode()
Object 内の hashCode
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||