|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<TagToken>
info.bliki.wiki.tags.util.TagStack
public class TagStack
Stack which contains the currently generated HTML/Wiki tags from the parsing process.
Field Summary | |
---|---|
protected java.util.ArrayList<BaseToken> |
fNodeList
List of generated HTML/Wiki tags. |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
TagStack()
|
|
TagStack(int initialStackCapacity,
int initialNodelistCapacity)
|
Method Summary | |
---|---|
void |
append(BaseToken contentNode)
|
void |
append(TagStack stack)
|
java.util.List<BaseToken> |
getNodeList()
Return the internal list of nodes (size maybe 0) |
TagToken |
peek()
Looks at the TagToken at the top of this stack without
removing it from the stack. |
TagToken |
pop()
Removes the TagToken at the top of this stack and returns that
TagToken . |
boolean |
push(java.lang.String nodeString)
Pushes a new TagNode created from the nodeString onto the top
of this stack. |
boolean |
push(TagToken item)
Pushes a TagToken item onto the top of this stack. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
protected java.util.ArrayList<BaseToken> fNodeList
Constructor Detail |
---|
public TagStack()
public TagStack(int initialStackCapacity, int initialNodelistCapacity)
Method Detail |
---|
public TagToken peek()
TagToken
at the top of this stack without
removing it from the stack.
public TagToken pop()
TagToken
at the top of this stack and returns that
TagToken
.
TagToken
at the top of this stack.public boolean push(TagToken item)
TagToken
item onto the top of this stack.
item
- the TagToken
item to be pushed onto this stack.
true
if this collection changed as a result of the
callpublic boolean push(java.lang.String nodeString)
TagNode
created from the nodeString onto the top
of this stack.
nodeString
- the string for the new TagNode
item to be pushed onto
this stack.
true
if this collection changed as a result of the
callpublic java.util.List<BaseToken> getNodeList()
public void append(BaseToken contentNode)
public void append(TagStack stack)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |