public class HtmlStack extends LinkedList
modCount
Constructor and Description |
---|
HtmlStack() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
excludesTag(String tag)
Returns
true if any element on the stack
prohibits the specified tag. |
protected boolean |
isBodySeen()
Returns
true if a BODY element has been
pushed on the stack. |
protected boolean |
isHeadSeen()
Returns
true if a HEAD element has been
pushed on the stack. |
protected void |
popp()
Pops top element from element stack.
|
protected void |
popTo(int idx)
Pops elements from the stack up to and including the
one indexed by idx
|
protected void |
push(JHOpenTag tag)
Pushes an element onto the stack.
|
protected int |
search(String tag)
Searches backwards through the element stack for a
match to a given tag.
|
protected void |
setBodyElement(HtmlTagDesc elem)
Sets the value of the HEAD element for easy comparison
|
protected void |
setFramesetElement(HtmlTagDesc elem)
Sets the value of the HEAD element for easy comparison
|
protected void |
setHeadElement(HtmlTagDesc elem)
Sets the value of the HEAD element for easy comparison
|
protected JHOpenTag |
top()
Gets the top of the element stack without popping it.
|
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, descendingIterator, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, set, size, spliterator, toArray, toArray
iterator
equals, hashCode, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, replaceAll, retainAll, sort, subList
parallelStream, removeIf, stream
protected void setHeadElement(HtmlTagDesc elem)
protected void setBodyElement(HtmlTagDesc elem)
protected void setFramesetElement(HtmlTagDesc elem)
protected void popp()
protected void push(JHOpenTag tag)
protected JHOpenTag top()
protected int search(String tag)
protected void popTo(int idx)
protected boolean isHeadSeen()
true
if a HEAD element has been
pushed on the stack.protected boolean isBodySeen()
true
if a BODY element has been
pushed on the stack.protected boolean excludesTag(String tag)
true
if any element on the stack
prohibits the specified tag.Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.