Class State

java.lang.Object
com.itextpdf.html2pdf.attach.State

public class State extends Object
State machine to push, pop, peek,... ITagWorker instances to and from the Stack.
  • Constructor Details

    • State

      public State()
      Instantiates a new State instance.
  • Method Details

    • getStack

      public Stack<ITagWorker> getStack()
      Gets the stack.
      Returns:
      the stack
    • push

      public void push (ITagWorker tagWorker)
      Pushes a ITagWorker instance to the stack.
      Parameters:
      tagWorker - the tag worker
    • pop

      public ITagWorker pop()
      Pops a ITagWorker from the stack.
      Returns:
      the tag worker
    • top

      public ITagWorker top()
      Peeks at the ITagWorker at the top of the stack.
      Returns:
      the tag worker at the top
    • empty

      public boolean empty()
      Checks if the stack is empty.
      Returns:
      true, if the stack is empty