Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.htmlparser.util
Class NodeList  view NodeList download NodeList.java

java.lang.Object
  extended byorg.htmlparser.util.NodeList
All Implemented Interfaces:
java.io.Serializable

public class NodeList
extends java.lang.Object
implements java.io.Serializable


Field Summary
private  int capacity
           
private  int capacityIncrement
           
private static int INITIAL_CAPACITY
           
private  org.htmlparser.Node[] nodeData
           
private  int numberOfAdjustments
           
private  int size
           
 
Constructor Summary
NodeList()
           
 
Method Summary
 void add(org.htmlparser.Node node)
           
private  void adjustVectorCapacity()
           
 java.lang.String asHtml()
           
 java.lang.String asString()
           
 org.htmlparser.Node elementAt(int i)
           
 SimpleNodeIterator elements()
           
 int getNumberOfAdjustments()
           
 void prepend(org.htmlparser.Node node)
          Insert the given node at the head of the list.
 void remove(int index)
           
 void removeAll()
           
 NodeList searchFor(java.lang.Class classType)
           
 int size()
           
 org.htmlparser.Node[] toNodeArray()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

NodeList

public NodeList()
Method Detail

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)