A DTD grammar that produces balanced syntax trees.
| Modifier and Type | Field and Description |
|---|---|
| private int | fDepth
Stack depth
|
| private int[][] | fGroupIndexStack
Holder for choice/sequence/leaf groups at each depth. |
| private int[] | fGroupIndexStackSizes
Sizes of the allocated portions of each int[] in fGroupIndexStack. |
| private boolean | fMixed
Mixed.
|
| private short[] | fOpStack
Children content model operation stack.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| protected final void | addContentSpecToElement(XMLElementDecl elementDecl)
Overrides org. |
| private void | addToCurrentGroup(int
handle to the XMLContentSpec to add to the current group contentSpec)Add XMLContentSpec to the current group. |
| public final void | element(String
The name of the referenced element. elementName, Augmentations Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| public final void | endDTD(Augmentations
Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| public final void | endGroup(Augmentations
Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| private void | |
| public final void | occurrence(short
The occurrence count for the last element
or group. occurrence, Augmentations Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| public final void | pcdata(Augmentations
Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| public final void | separator(short
The type of children separator. separator, Augmentations Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| public final void | startContentModel(String
The name of the element. elementName, Augmentations Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| public final void | startGroup(Augmentations
Additional information that may include infoset
augmentations. augs)Overrides org. Implements org. |
| fDepth | back to summary |
|---|---|
| private int fDepth Hides org. Stack depth | |
| fGroupIndexStack | back to summary |
|---|---|
| private int[][] fGroupIndexStack Holder for choice/sequence/leaf groups at each depth. | |
| fGroupIndexStackSizes | back to summary |
|---|---|
| private int[] fGroupIndexStackSizes Sizes of the allocated portions of each int[] in fGroupIndexStack. | |
| fMixed | back to summary |
|---|---|
| private boolean fMixed Hides org. Mixed. | |
| fOpStack | back to summary |
|---|---|
| private short[] fOpStack Hides org. Children content model operation stack. | |
| BalancedDTDGrammar | back to summary |
|---|---|
| public BalancedDTDGrammar(SymbolTable symbolTable, XMLDTDDescription desc) Default constructor. | |
| addContentSpecNodes | back to summary |
|---|---|
| private int addContentSpecNodes(int begin, int end) Creates a subtree from the leaf nodes at the current depth. | |
| addContentSpecToElement | back to summary |
|---|---|
| protected final void addContentSpecToElement(XMLElementDecl elementDecl) Overrides org. Adds the content spec to the given element declaration. | |
| addToCurrentGroup | back to summary |
|---|---|
| private void addToCurrentGroup(int contentSpec) Add XMLContentSpec to the current group.
| |
| element | back to summary |
|---|---|
| public final void element(String elementName, Augmentations augs) throws XNIException Overrides org. Implements org. A referenced element in a mixed or children content model.
| |
| endDTD | back to summary |
|---|---|
| public final void endDTD(Augmentations augs) throws XNIException Overrides org. Implements org. The end of the DTD.
| |
| endGroup | back to summary |
|---|---|
| public final void endGroup(Augmentations augs) throws XNIException Overrides org. Implements org. The end of a group for mixed or children content models.
| |
| initializeContentModelStacks | back to summary |
|---|---|
| private void initializeContentModelStacks() Initialize the stacks which temporarily hold content models. | |
| occurrence | back to summary |
|---|---|
| public final void occurrence(short occurrence, Augmentations augs) throws XNIException Overrides org. Implements org. The occurrence count for a child in a children content model or for the mixed content model group.
| |
| pcdata | back to summary |
|---|---|
| public final void pcdata(Augmentations augs) throws XNIException Overrides org. Implements org. The appearance of "#PCDATA" within a group signifying a
mixed content model. This method will be the first called
following the content model's
| |
| separator | back to summary |
|---|---|
| public final void separator(short separator, Augmentations augs) throws XNIException Overrides org. Implements org. The separator between choices or sequences of a mixed or children content model.
| |
| startContentModel | back to summary |
|---|---|
| public final void startContentModel(String elementName, Augmentations augs) throws XNIException Overrides org. Implements org. The start of a content model. Depending on the type of the content model, specific methods may be called between the call to the startContentModel method and the call to the endContentModel method.
| |
| startGroup | back to summary |
|---|---|
| public final void startGroup(Augmentations augs) throws XNIException Overrides org. Implements org. A start of either a mixed or children content model. A mixed
content model will immediately be followed by a call to the
| |