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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
empty()
Checks if the stack is empty.getStack()
Gets the stack.pop()
Pops aITagWorker
from the stack.void
push
(ITagWorker tagWorker) Pushes aITagWorker
instance to the stack.top()
Peeks at theITagWorker
at the top of the stack.
-
Constructor Details
-
State
public State()Instantiates a newState
instance.
-
-
Method Details
-
getStack
Gets the stack.- Returns:
- the stack
-
push
Pushes aITagWorker
instance to the stack.- Parameters:
-
tagWorker
- the tag worker
-
pop
Pops aITagWorker
from the stack.- Returns:
- the tag worker
-
top
Peeks at theITagWorker
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
-