An ordered list of Node, used to represent the body of an element, or a
jsp page of jsp document.
| Method from org.apache.jasper.compiler.Node$Nodes Detail: |
public void add(Node n) {
list.add(n);
root = null;
}
Appends a node to the list |
public Node getNode(int index) {
Node n = null;
try {
n = (Node) list.get(index);
} catch (ArrayIndexOutOfBoundsException e) {
}
return n;
}
|
public Node.Root getRoot() {
return root;
}
|
public boolean isGeneratedInBuffer() {
return generatedInBuffer;
}
|
public void remove(Node n) {
list.remove(n);
}
Removes the given node from the list. |
public void setGeneratedInBuffer(boolean g) {
generatedInBuffer = g;
}
|
public int size() {
return list.size();
}
|
public void visit(Node.Visitor v) throws JasperException {
Iterator iter = list.iterator();
while (iter.hasNext()) {
Node n = (Node) iter.next();
n.accept(v);
}
}
Visit the nodes in the list with the supplied visitor |