|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.html.parser.ContentModelState
A content model state. This is basically a list of pointers to the BNF expression representing the model (the ContentModel). Each element in a DTD has a content model which describes the elements that may occur inside, and the order in which they can occur.
Each time a token is reduced a new state is created.
See Annex H on page 556 of the SGML handbook for more information.
Parser
,
DTD
,
Element
,
ContentModel
Field Summary | |
(package private) ContentModel |
model
|
(package private) ContentModelState |
next
|
(package private) long |
value
|
Constructor Summary | |
|
ContentModelState(ContentModel model)
Create a content model state for a content model. |
(package private) |
ContentModelState(Object content,
ContentModelState next)
Create a content model state for a content model given the remaining state that needs to be reduce. |
(package private) |
ContentModelState(Object content,
ContentModelState next,
long value)
Create a content model state for a content model given the remaining state that needs to be reduce. |
Method Summary | |
ContentModelState |
advance(Object token)
Advance this state to a new state. |
Element |
first()
Check if the state can be terminated. |
ContentModel |
getModel()
Return the content model that is relevant to the current state. |
boolean |
terminate()
Check if the state can be terminated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
ContentModel model
long value
ContentModelState next
Constructor Detail |
public ContentModelState(ContentModel model)
ContentModelState(Object content, ContentModelState next)
ContentModelState(Object content, ContentModelState next, long value)
Method Detail |
public ContentModel getModel()
public boolean terminate()
public Element first()
public ContentModelState advance(Object token)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |