Class TagStackEntry


  • public class TagStackEntry
    extends Object
    This class is the unit definition of the TagStack collection. It is responsible for containing information relevant to evaluation of future tags. It is a wrapper for the individual tags found in the html document and maintains a record of child-parent relationships.
    Author:
    nhant01, GeorgeLuo
    • Constructor Detail

      • TagStackEntry

        public TagStackEntry​(@Nonnull
                             String tagName)
        Constructor.
        Parameters:
        tagName - the tag name.
    • Method Detail

      • getTagSpec

        public ParsedTagSpec getTagSpec()
        Getting the ParsedTagSpec instance.
        Returns:
        the ParsedTagSpec instance.
      • getReferencePoint

        public ParsedTagSpec getReferencePoint()
        Getting the parsed tag spec of the reference point.
        Returns:
        returns the parsed tag spec of the reference point.
      • getHasDescendantConstraintLists

        public boolean getHasDescendantConstraintLists()
        Getting the descendant constraint list.
        Returns:
        returns the descendant constraint list.
      • setHasDescendantConstraintLists

        public void setHasDescendantConstraintLists​(boolean hasDescendantConstraintLists)
        Setting the descendant constraint lists value.
        Parameters:
        hasDescendantConstraintLists - descendant constraint lists value.
      • setReferencePoint

        public void setReferencePoint​(@Nonnull
                                      ParsedTagSpec referencePoint)
        Setting the parsed tag spec of the reference point.
        Parameters:
        referencePoint - parsed tag spec.
      • setTagSpec

        public void setTagSpec​(@Nonnull
                               ParsedTagSpec tagSpec)
        Setting the parsed tag spec.
        Parameters:
        tagSpec - tag spec.
      • getChildTagMatcher

        public ChildTagMatcher getChildTagMatcher()
        Getting the child tag matcher.
        Returns:
        returns child tag matcher.
      • setChildTagMatcher

        public void setChildTagMatcher​(@Nonnull
                                       ChildTagMatcher childTagMatcher)
        Setting the child tag matcher.
        Parameters:
        childTagMatcher - child tag matcher.
      • setCdataMatcher

        public void setCdataMatcher​(@Nonnull
                                    CdataMatcher cdataMatcher)
        Setting the Cdata matcher.
        Parameters:
        cdataMatcher - Cdata matcher.
      • getReferencePointMatcher

        public ReferencePointMatcher getReferencePointMatcher()
        Getting the reference point matcher.
        Returns:
        returns the reference point matcher.
      • getNumChildren

        public int getNumChildren()
        Returning the number children count.
        Returns:
        returns the number children count.
      • incrementNumChildren

        public void incrementNumChildren()
        Increment the number children count.
      • setOnlyChildTagName

        public void setOnlyChildTagName​(@Nonnull
                                        String name)
        Setting the only child tag name.
        Parameters:
        name - only child tag name.
      • getOnlyChildTagName

        public String getOnlyChildTagName()
        Getting the only child tag name.
        Returns:
        returns the only child tag name.
      • setOnlyChildErrorLineCol

        public void setOnlyChildErrorLineCol​(@Nonnull
                                             Locator lineCol)
        Setting the only child error line col.
        Parameters:
        lineCol - the pair of line/col.
      • getOnlyChildErrorLineCol

        public Locator getOnlyChildErrorLineCol()
        Getting the only child error line col.
        Returns:
        returns a pair of line/col.
      • setReferencePointMatcher

        public void setReferencePointMatcher​(@Nonnull
                                             ReferencePointMatcher referencePointMatcher)
        Setting the reference point matcher.
        Parameters:
        referencePointMatcher - reference point matcher.
      • setLastChildTagName

        public void setLastChildTagName​(@Nonnull
                                        String tagName)
        Setting the last child tag name.
        Parameters:
        tagName - last child tag name.
      • getLastChildTagName

        public String getLastChildTagName()
        Getting the last child tag name.
        Returns:
        returns the last child tag name.
      • getLastChildUrl

        public String getLastChildUrl()
        Getting the last child url.
        Returns:
        returns the last child url.
      • setLastChildUrl

        public void setLastChildUrl​(@Nonnull
                                    String lastChildUrl)
        Setting the last child url.
        Parameters:
        lastChildUrl - the last child url.
      • getLastChildErrorLineCol

        public Locator getLastChildErrorLineCol()
        Getting the last child error line col.
        Returns:
        returns the last child error line col.
      • setLastChildErrorLineCol

        public void setLastChildErrorLineCol​(@Nonnull
                                             Locator lastChildErrorLineCol)
        Setting the last child error line col.
        Parameters:
        lastChildErrorLineCol - last child error line col.
      • getCdataMatcher

        public CdataMatcher getCdataMatcher()
        Getting the Cdata matcher.
        Returns:
        returns the Cdata matcher.
      • getTagName

        public String getTagName()
        Getting the tag name.
        Returns:
        returns the tag name.
      • cleanup

        public void cleanup()
        Clean up reference, improve gc performance.