org.apache.jasper.compiler

Class Node.Nodes

public static class Node.Nodes extends 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
voidadd(Node n)
Appends a node to the list
NodegetNode(int index)
Node.RootgetRoot()
booleanisGeneratedInBuffer()
voidremove(Node n)
Removes the given node from the list.
voidsetGeneratedInBuffer(boolean g)
intsize()
voidvisit(Node.Visitor v)
Visit the nodes in the list with the supplied visitor

Constructor Detail

Nodes

public Nodes()

Nodes

public Nodes(Node.Root root)

Method Detail

add

public void add(Node n)
Appends a node to the list

Parameters: n The node to add

getNode

public Node getNode(int index)

getRoot

public Node.Root getRoot()

isGeneratedInBuffer

public boolean isGeneratedInBuffer()

remove

public void remove(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)
Visit the nodes in the list with the supplied visitor

Parameters: v The visitor used

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.