Class ModelNode
java.lang.Object
com.ctc.wstx.dtd.ModelNode
- Direct Known Subclasses:
ChoiceModel, ConcatModel, OptionalModel, StarModel, TokenModel
Abstract base class for classes constructed from
ContentSpec
objects, when they get rewritten (when their ContentSpec.rewrite()
gets called). These nodes are then used for constructing complete DFA
states for validation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaddFirstPos(BitSet firstPos) abstract voidaddLastPos(BitSet firstPos) abstract voidcalcFollowPos(BitSet[] followPosSets) abstract ModelNodeMethod that has to create a deep copy of the model, without sharing any of existing Objects.abstract voidindexTokens(List<TokenModel> tokens) abstract boolean
-
Constructor Details
-
ModelNode
public ModelNode()
-
-
Method Details
-
cloneModel
Method that has to create a deep copy of the model, without sharing any of existing Objects. -
isNullable
public abstract boolean isNullable() -
indexTokens
-
addFirstPos
-
addLastPos
-
calcFollowPos
-