org.apache.jasper.compiler

Class Node.Nodes

Enclosing Class:
org.apache.jasper.compiler.Node

public static class Node.Nodes
extends java.lang.Object

An ordered list of Node, used to represent the body of an element, or a jsp page of jsp document.

Constructor Summary

Nodes()
Nodes(Node.Root root)

Method Summary

void
add(org.apache.jasper.compiler.Node n)
Appends a node to the list
org.apache.jasper.compiler.Node
getNode(int index)
Node.Root
getRoot()
boolean
isGeneratedInBuffer()
void
remove(org.apache.jasper.compiler.Node n)
Removes the given node from the list.
void
setGeneratedInBuffer(boolean g)
int
size()
void
visit(Node.Visitor v)
Visit the nodes in the list with the supplied visitor

Constructor Details

Nodes

public Nodes()

Nodes

public Nodes(Node.Root root)

Method Details

add

public void add(org.apache.jasper.compiler.Node n)
Appends a node to the list
Parameters:
n - The node to add

getNode

public org.apache.jasper.compiler.Node getNode(int index)

getRoot

public Node.Root getRoot()

isGeneratedInBuffer

public boolean isGeneratedInBuffer()

remove

public void remove(org.apache.jasper.compiler.Node n)
Removes the given node from the list.
Parameters:
n - The node to be removed

setGeneratedInBuffer

public void setGeneratedInBuffer(boolean g)

size

public int size()

visit

public void visit(Node.Visitor v)
            throws JasperException
Visit the nodes in the list with the supplied visitor
Parameters:
v - The visitor used

Copyright ?? 2000-2004 Apache Software Foundation. All Rights Reserved.