Package com.itextpdf.html2pdf.attach
Class State
java.lang.Object
com.itextpdf.html2pdf.attach.State
State machine to push, pop, peek,...
ITagWorker instances to and from the Stack.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanempty()Checks if the stack is empty.getStack()Gets the stack.pop()Pops aITagWorkerfrom the stack.voidpush(ITagWorker tagWorker) Pushes aITagWorkerinstance to the stack.top()Peeks at theITagWorkerat the top of the stack.
-
Constructor Details
-
State
public State()Instantiates a newStateinstance.
-
-
Method Details
-
getStack
Gets the stack.- Returns:
- the stack
-
push
Pushes aITagWorkerinstance to the stack.- Parameters:
-
tagWorker- the tag worker
-
pop
Pops aITagWorkerfrom the stack.- Returns:
- the tag worker
-
top
Peeks at theITagWorkerat 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
-