|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.crimson.parser.ContentModelState
A content model state. This is basically an index into a content model node, emulating an automaton with primitives to consume tokens. It may create new content model states as a consequence of that consumption, or modify the current state. "Next" is used to track states that are pending completion after the "current automaton" completes its task.
ContentModel
,
ValidatingParser
Field Summary | |
private ContentModel |
model
|
private ContentModelState |
next
|
private boolean |
sawOne
|
Constructor Summary | |
(package private) |
ContentModelState(ContentModel model)
Create a content model state for a content model. |
private |
ContentModelState(Object content,
ContentModelState next)
Create a content model state for a content model, stacking a state for subsequent processing. |
Method Summary | |
(package private) ContentModelState |
advance(String token)
Advance this state to a new state, or throw an exception (use a more appropriate one?) |
(package private) 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 |
private ContentModel model
private boolean sawOne
private ContentModelState next
Constructor Detail |
ContentModelState(ContentModel model)
private ContentModelState(Object content, ContentModelState next)
Method Detail |
boolean terminate()
ContentModelState advance(String token) throws EndOfInputException
EndOfInputException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |