org.yglib.html.parser
Class CheckStack

java.lang.Object
  extended by org.yglib.html.parser.CheckStack

public class CheckStack
extends java.lang.Object


Constructor Summary
CheckStack()
           
 
Method Summary
 Node checkNode(TagNode tagNode)
           
 Node checkNode2(TagNode tagNode)
           
 void display()
           
 boolean empty()
           
 Node getNode(int offset)
          if input value is out of range, return null
 Node peek()
          get the top of data in the stack
 Node pop()
           
 void push(Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckStack

public CheckStack()
Method Detail

empty

public boolean empty()

push

public void push(Node node)

pop

public Node pop()

peek

public Node peek()
get the top of data in the stack

Returns:

checkNode2

public Node checkNode2(TagNode tagNode)

checkNode

public Node checkNode(TagNode tagNode)

getNode

public Node getNode(int offset)
if input value is out of range, return null

Parameters:
offset - '0' is current value
Returns:

display

public void display()