public class UnmarshalStateStack extends Object
UnmarshalState
s are stored.Constructor and Description |
---|
UnmarshalStateStack() |
Modifier and Type | Method and Description |
---|---|
UnmarshalState |
getFirstParentState() |
Integer |
getFirstParentStateIndex() |
UnmarshalState |
getLastState()
Peeks the stack for the top
UnmarshalState , without removing
it. |
boolean |
hasAnotherParentState()
Checks if there is a parent state on the stack.
|
boolean |
isEmpty()
Checks if the stack is empty.
|
UnmarshalState |
peekAtState(Integer index) |
void |
pushState(UnmarshalState state)
Pushes a
UnmarshalState instance onto the stack- |
UnmarshalState |
removeLastState()
Pops the top
UnmarshalState off the stack. |
UnmarshalState |
removeParentState()
Removes a parent state from the stack.
|
void |
resetParentState() |
Integer |
size() |
public UnmarshalState getLastState()
UnmarshalState
, without removing
it.UnmarshalState
, without removing it.public UnmarshalState removeLastState()
UnmarshalState
off the stack.UnmarshalState
instance, removing it from the stack as well.public boolean isEmpty()
public void pushState(UnmarshalState state)
UnmarshalState
instance onto the stack-state
- The UnmarshalState
instance to be pushed onto the stack.public boolean hasAnotherParentState()
public UnmarshalState removeParentState()
public UnmarshalState peekAtState(Integer index)
public UnmarshalState getFirstParentState()
public Integer getFirstParentStateIndex()
public Integer size()
public void resetParentState()
Copyright © 2022. All rights reserved.