Class StackNode<T>

java.lang.Object
nu.validator.htmlparser.impl.StackNode<T>

final class StackNode<T> extends Object
  • Field Details

  • Constructor Details

    • StackNode

      StackNode(int flags, String ns, String name, T node, 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, HtmlAttributes attributes, TaintableLocatorImpl locator)
      Constructor for HTML formatting elements.
      Parameters:
      elementName -
      node -
      attributes -
    • StackNode

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

      StackNode(ElementName elementName, 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, String popName, boolean markAsIntegrationPoint, TaintableLocatorImpl locator)
      Constructor for MathML.
      Parameters:
      elementName -
      node -
      popName -
      markAsIntegrationPoint -
  • Method Details

    • getLocator

      public TaintableLocatorImpl getLocator()
    • 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 String toString()
      Overrides:
      toString in class Object
      See Also:
    • retain

      public void retain()
    • release

      public void release()