Package org.cyberneko.html
Class HTMLTagBalancer.InfoStack
- java.lang.Object
-
- org.cyberneko.html.HTMLTagBalancer.InfoStack
-
- Enclosing class:
- HTMLTagBalancer
public static class HTMLTagBalancer.InfoStack extends java.lang.Object
Unsynchronized stack of element information.
-
-
Field Summary
Fields Modifier and Type Field Description HTMLTagBalancer.Info[]
data
The stack data.int
top
The top of the stack.
-
Constructor Summary
Constructors Constructor Description InfoStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTMLTagBalancer.Info
peek()
Peeks at the top of the stack.HTMLTagBalancer.Info
pop()
Pops the top item off of the stack.void
push(HTMLTagBalancer.Info info)
Pushes element information onto the stack.java.lang.String
toString()
Simple representation to make debugging easier
-
-
-
Field Detail
-
top
public int top
The top of the stack.
-
data
public HTMLTagBalancer.Info[] data
The stack data.
-
-
Method Detail
-
push
public void push(HTMLTagBalancer.Info info)
Pushes element information onto the stack.
-
peek
public HTMLTagBalancer.Info peek()
Peeks at the top of the stack.
-
pop
public HTMLTagBalancer.Info pop()
Pops the top item off of the stack.
-
toString
public java.lang.String toString()
Simple representation to make debugging easier- Overrides:
toString
in classjava.lang.Object
-
-