|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.token.Attribute
トークン毎の属性を表すクラスです。
フィールドの概要 | |
protected int |
columnNumber
このトークンが開始される行頭からのカラム位置 |
protected Content |
content
コンテンツ |
protected int |
lineNumber
このトークンの開始される行番号 |
protected Reporter |
reporter
解析時に起きたメッセージを記録するレポータ |
コンストラクタの概要 | |
Attribute(Content content,
int line,
int column,
Reporter reporter)
唯一のコンストラクタです。 |
メソッドの概要 | |
String[] |
getBaseClass()
クラス名を返します。 |
String |
getBaseId()
ID を返します。 |
String |
getBaseTitle()
タイトルを返します。 |
Object |
getStyle()
スタイルを返します。 |
protected void |
reportMessage(int level,
String key,
String[] args)
メッセージを報告します。 |
boolean |
setAttribute(String key,
String value)
指定された属性名と属性値で、属性を設定します。 |
protected boolean |
setBaseAttribute(String key,
String value)
多くのトークンに共通する基本属性を設定します。 |
void |
setStyle(Object style)
スタイルを設定します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected int columnNumber
protected Content content
protected int lineNumber
protected Reporter reporter
コンストラクタの詳細 |
public Attribute(Content content, int line, int column, Reporter reporter)
content
- コンテンツline
- 行番号 (1
から)、
特定できない場合は 0
column
- カラム位置 (1
から)、
特定できない場合は 0
reporter
- エラーレポータメソッドの詳細 |
public String[] getBaseClass()
public String getBaseId()
public String getBaseTitle()
public Object getStyle()
protected void reportMessage(int level, String key, String[] args)
level
- メッセージのレベルkey
- メッセージリソースのキーargs
- メッセージ追加引数、
必要ない場合は null
public boolean setAttribute(String key, String value) throws IllegalArgumentException
true
を、
存在しない場合は false
を返します。
渡される key
は、必ず小文字に変換されています。
key
- 属性名value
- 属性値
true
、
それ以外の場合は false
IllegalArgumentException
- 属性が正しくない場合protected boolean setBaseAttribute(String key, String value) throws IllegalArgumentException
key
- 属性名value
- 属性値
true
、
それ以外の場合は false
IllegalArgumentException
- 属性が正しくない場合public void setStyle(Object style)
style
- スタイル
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'