|
GXPARSE hosted by | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityStack<T extends Parser>
Stack of the entities that are currently being processed. Entities can be nested in elements or other entities. The entity at the top of stack is the only active entity. Lower entities become active again when all of the entities above them have been popped. Re-activating an entity causes processing to continue from the point where processing was previous suspended to allow processing of another entity or an element.
Method Summary | |
---|---|
Entity |
getCurrentEntity()
Get the CurrentEntity at the top of the stack
without removing it from the stack. |
boolean |
isEmpty()
Indicate whether entity stack is empty. |
Entity |
pop()
Remove the current entity from the top of the
stack. |
void |
push(CoroutineEntity<T> coroutineEntity)
Push a new CoroutineEntity on the entity stack,
where it will become the current entity . |
Method Detail |
---|
void push(CoroutineEntity<T> coroutineEntity)
Push a new CoroutineEntity
on the entity stack,
where it will become the current entity
.
NullPointerException
- if CoroutineEntity
is nullEntity pop()
Remove the current entity
from the top of the
stack. The entity is no longer valid as an instance of
CurrentEntity
. The entity is normally popped
when it goes out of scope in the document, in which case it will not
be valid even as an instance of the superclass Entity
.
EmptyStackException
- if the entity stack is emptyboolean isEmpty()
Indicate whether entity stack is empty.
Entity getCurrentEntity()
Get the CurrentEntity
at the top of the stack
without removing it from the stack.
EmptyStackException
- if the entity stack is empty
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |