Class OptionalModel


  • public class OptionalModel
    extends ModelNode
    Content specification class that represents an optional specification. Optional specifications are generally a result of '?' arity marker, and are created when ContentSpec.rewrite() is called on a specification with '?' arity modifier.
    • Constructor Detail

      • OptionalModel

        public OptionalModel​(ModelNode model)
    • Method Detail

      • cloneModel

        public ModelNode cloneModel()
        Method that has to create a deep copy of the model, without sharing any of existing Objects.
        Specified by:
        cloneModel in class ModelNode
      • addFirstPos

        public void addFirstPos​(java.util.BitSet pos)
        Specified by:
        addFirstPos in class ModelNode
      • addLastPos

        public void addLastPos​(java.util.BitSet pos)
        Specified by:
        addLastPos in class ModelNode
      • calcFollowPos

        public void calcFollowPos​(java.util.BitSet[] followPosSets)
        Specified by:
        calcFollowPos in class ModelNode
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object