Class NameClassWithChildState

    • Constructor Detail

      • NameClassWithChildState

        public NameClassWithChildState()
    • Method Detail

      • onEndChild

        public final void onEndChild​(NameClass childNameClass)
        receives a Pattern object that is contained in this element.
        Specified by:
        onEndChild in interface NameClassOwner
      • makeNameClass

        protected final NameClass makeNameClass()
        Description copied from class: NameClassState
        This method is called from endElement method. Implementation has to provide NameClass object that represents the content of this element.
        Specified by:
        makeNameClass in class NameClassState
      • castNameClass

        protected abstract NameClass castNameClass​(NameClass halfCastedNameClass,
                                                   NameClass newChildNameClass)
        combines half-made name class and newly found child name class into the name class.

        Say this container has three child name class n1,n2, and n3. Then, the name class of this container will be made by the following method invocations.

           annealNameClass( castNameClass( castNameClass( castNameClass(null,p1), p2), p3 ) )
         
      • annealNameClass

        protected NameClass annealNameClass​(NameClass nameClass)
        performs final wrap-up and returns a fully created NameClass object that represents this element.