|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.swing.text.html.parser.ContentModel
public final class ContentModel
內容網要的表示形式。內容網要基本上是一個受限制的 BNF 表達式。受限制從某種意義上來說就是,它必須是確定的。這意味著您不必將它表示為一個有限狀態自動機。
有關更多資訊,請參閱 SGML 手冊第 556 頁中的 Annex H 內容。
| 欄位摘要 | |
|---|---|
Object |
content
內容。 |
ContentModel |
next
下一個內容網要(使用 ','、'|' 或 '&' 表達式)。 |
int |
type
型別。 |
| 建構子摘要 | |
|---|---|
ContentModel()
|
|
ContentModel(Element content)
為元素創建一個內容網要。 |
|
ContentModel(int type,
ContentModel content)
創建一個特定型別的內容網要。 |
|
ContentModel(int type,
Object content,
ContentModel next)
創建一個特定型別的內容網要。 |
|
| 方法摘要 | |
|---|---|
boolean |
empty()
如果內容網要可以比對一個空輸入串流,則返回 true。 |
Element |
first()
返回必須具有下一個的元素。 |
boolean |
first(Object token)
如果標記可能為輸入串流中第一個標記,則返回 true。 |
void |
getElements(Vector<Element> elemVec)
使用作為此 contentModel 一部分的元素列表更新 elemVec。 |
String |
toString()
轉換為字元串。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 欄位詳細資訊 |
|---|
public int type
public Object content
public ContentModel next
| 建構子詳細資訊 |
|---|
public ContentModel()
public ContentModel(Element content)
public ContentModel(int type,
ContentModel content)
public ContentModel(int type,
Object content,
ContentModel next)
| 方法詳細資訊 |
|---|
public boolean empty()
public void getElements(Vector<Element> elemVec)
public boolean first(Object token)
public Element first()
public String toString()
Object 中的 toString
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。