Class HTMLTagBalancer.InfoStackWithOpenCounters

java.lang.Object
org.htmlunit.cyberneko.HTMLTagBalancer.InfoStackWithOpenCounters
Enclosing class:
HTMLTagBalancer

public static class HTMLTagBalancer.InfoStackWithOpenCounters extends Object
Unsynchronized stack of element information.
  • Field Details

    • length

      public int length
      The length of the stack.
    • data

      public HTMLTagBalancer.Info[] data
      The stack data.
  • Constructor Details

    • InfoStackWithOpenCounters

      public InfoStackWithOpenCounters(int initialSize)
  • Method Details

    • push

      public void push(HTMLTagBalancer.Info info)
    • peek

      public HTMLTagBalancer.Info peek()
    • pop

      public HTMLTagBalancer.Info pop()
    • isOpen

      public boolean isOpen(short elementCode)
      Returns true if at least one element with this code is currently open.
      Returns:
      true if at least one element with this code is currently open.
    • clear

      public void clear()
    • toString

      public String toString()
      Overrides:
      toString in class Object