Class StackNode<T>


  • final class StackNode<T>
    extends java.lang.Object
    • Field Detail

      • flags

        final int flags
      • name

        final java.lang.String name
      • popName

        final java.lang.String popName
      • ns

        final java.lang.String ns
      • node

        final T node
      • refcount

        private int refcount
    • Constructor Detail

      • StackNode

        StackNode​(int flags,
                  java.lang.String ns,
                  java.lang.String name,
                  T node,
                  java.lang.String popName,
                  HtmlAttributes attributes,
                  TaintableLocatorImpl locator)
        Constructor for copying. This doesn't take another StackNode because in C++ the caller is reponsible for reobtaining the local names from another interner.
        Parameters:
        flags -
        ns -
        name -
        node -
        popName -
        attributes -
      • StackNode

        StackNode​(ElementName elementName,
                  T node,
                  TaintableLocatorImpl locator)
        Short hand for well-known HTML elements.
        Parameters:
        elementName -
        node -
      • StackNode

        StackNode​(ElementName elementName,
                  T node,
                  java.lang.String popName,
                  TaintableLocatorImpl locator)
        The common-case HTML constructor.
        Parameters:
        elementName -
        node -
        popName -
      • StackNode

        StackNode​(ElementName elementName,
                  java.lang.String popName,
                  T node,
                  TaintableLocatorImpl locator)
        Constructor for SVG elements. Note that the order of the arguments is what distinguishes this from the HTML constructor. This is ugly, but AFAICT the least disruptive way to make this work with Java's generics and without unnecessary branches. :-(
        Parameters:
        elementName -
        popName -
        node -
      • StackNode

        StackNode​(ElementName elementName,
                  T node,
                  java.lang.String popName,
                  boolean markAsIntegrationPoint,
                  TaintableLocatorImpl locator)
        Constructor for MathML.
        Parameters:
        elementName -
        node -
        popName -
        markAsIntegrationPoint -
    • Method Detail

      • getFlags

        public int getFlags()
      • getGroup

        public int getGroup()
      • isScoping

        public boolean isScoping()
      • isSpecial

        public boolean isSpecial()
      • isFosterParenting

        public boolean isFosterParenting()
      • isHtmlIntegrationPoint

        public boolean isHtmlIntegrationPoint()
      • isOptionalEndTag

        public boolean isOptionalEndTag()
      • prepareSvgFlags

        private static int prepareSvgFlags​(int flags)
      • prepareMathFlags

        private static int prepareMathFlags​(int flags,
                                            boolean markAsIntegrationPoint)
      • destructor

        private void destructor()
      • dropAttributes

        public void dropAttributes()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()
      • retain

        public void retain()
      • release

        public void release()