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
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ContentModel | |
| pack-priv ContentModelState | |
| pack-priv long |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv | ContentModelState(Object content, ContentModelState next)
Create a content model state for a content model given the remaining state that needs to be reduce. |
| pack-priv | 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. |
| Modifier and Type | Method and Description |
|---|---|
| public ContentModelState | |
| public Element | |
| public ContentModel | |
| public boolean | Returns: true if the model can terminate without further inputCheck if the state can be terminated. |
| model | back to summary |
|---|---|
| pack-priv ContentModel model | |
| next | back to summary |
|---|---|
| pack-priv ContentModelState next | |
| value | back to summary |
|---|---|
| pack-priv long value | |
| ContentModelState | back to summary |
|---|---|
| public ContentModelState(ContentModel model) Create a content model state for a content model. | |
| ContentModelState | back to summary |
|---|---|
| pack-priv ContentModelState(Object content, ContentModelState next) Create a content model state for a content model given the remaining state that needs to be reduce. | |
| ContentModelState | back to summary |
|---|---|
| pack-priv 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. | |
| advance | back to summary |
|---|---|
| public ContentModelState advance(Object token) Advance this state to a new state. An exception is thrown if the token is illegal at this point in the content model.
| |
| first | back to summary |
|---|---|
| public Element first() Check if the state can be terminated. That is there are no more tokens required in the input stream.
| |
| getModel | back to summary |
|---|---|
| public ContentModel getModel() Return the content model that is relevant to the current state. | |
| terminate | back to summary |
|---|---|
| public boolean terminate() Check if the state can be terminated. That is there are no more tokens required in the input stream.
| |