java.lang.Object
org.htmlparser.util.NodeList
- All Implemented Interfaces:
- java.io.Serializable
- public class NodeList
- extends java.lang.Object
- implements java.io.Serializable
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY
- See Also:
- Constant Field Values
nodeData
private org.htmlparser.Node[] nodeData
size
private int size
capacity
private int capacity
capacityIncrement
private int capacityIncrement
numberOfAdjustments
private int numberOfAdjustments
NodeList
public NodeList()
add
public void add(org.htmlparser.Node node)
prepend
public void prepend(org.htmlparser.Node node)
- Insert the given node at the head of the list.
adjustVectorCapacity
private void adjustVectorCapacity()
size
public int size()
elementAt
public org.htmlparser.Node elementAt(int i)
getNumberOfAdjustments
public int getNumberOfAdjustments()
elements
public SimpleNodeIterator elements()
toNodeArray
public org.htmlparser.Node[] toNodeArray()
asString
public java.lang.String asString()
asHtml
public java.lang.String asHtml()
remove
public void remove(int index)
removeAll
public void removeAll()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
searchFor
public NodeList searchFor(java.lang.Class classType)