public class TagStack extends ArrayList<TagToken>
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<BaseToken> |
fNodeList
List of generated HTML/Wiki tags.
|
modCount| Constructor and Description |
|---|
TagStack() |
TagStack(int initialStackCapacity,
int initialNodelistCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(BaseToken contentNode) |
void |
append(TagStack stack) |
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(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. |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic TagStack()
public TagStack(int initialStackCapacity,
int initialNodelistCapacity)
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(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 List<BaseToken> getNodeList()
public void append(BaseToken contentNode)
public void append(TagStack stack)
Copyright © 2017 Java Wikipedia API (Bliki engine). All rights reserved.