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

Quick Search    Search Deep

openjava.ptree
Class ParameterList  view ParameterList download ParameterList.java

java.lang.Object
  extended byopenjava.ptree.ParseTreeObject
      extended byopenjava.ptree.List
          extended byopenjava.ptree.ParameterList
All Implemented Interfaces:
java.lang.Cloneable, ParseTree

public class ParameterList
extends List

The ParameterList class presents for the node of parse tree of Parameter


Field Summary
private static java.lang.String LNLN
           
 
Fields inherited from class openjava.ptree.List
 
Fields inherited from class openjava.ptree.ParseTreeObject
LN
 
Constructor Summary
ParameterList()
           
ParameterList(Parameter e0)
           
 
Method Summary
 void accept(openjava.ptree.util.ParseTreeVisitor v)
          Accepts a ParseTreeVisitor object as the role of a Visitor in the Visitor pattern, as the role of an Element in the Visitor pattern.
 void add(Parameter p)
          Adds the specified element after the list This causes side-effect.
 void addAll(ParameterList lst)
          Appends a list after this list.
 Parameter get(int n)
          Gets the specified element at the index.
 void insertElementAt(Parameter p, int n)
          Inserts the specified element into the list before the specified element of the list.
 Parameter remove(int index)
          Removes the element at the specified position in this Vector.
 void set(int index, Parameter p)
          Adds the specified element after the list This causes side-effect.
 ParameterList subList(int from_index, int to_index)
          Returns a view of the portion of this List between fromIndex, inclusive, and toIndex, exclusive.
 
Methods inherited from class openjava.ptree.List
childrenAccept, contains, contents_addElement, contents_elementAt, contents_insertElementAt, contents_removeElementAt, contents_setElementAt, contents_size, elements, equals, isEmpty, makeRecursiveCopy, removeAll, replaceChildWith, size
 
Methods inherited from class openjava.ptree.ParseTreeObject
clone, equal, getObjectID, getParent, hashCode, lastObjectID, makeCopy, replace, setParent, toFlattenString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface openjava.ptree.ParseTree
getObjectID, makeCopy, replace, toFlattenString, toString
 

Field Detail

LNLN

private static final java.lang.String LNLN
Constructor Detail

ParameterList

public ParameterList()

ParameterList

public ParameterList(Parameter e0)
Method Detail

get

public Parameter get(int n)
Gets the specified element at the index.


add

public void add(Parameter p)
Adds the specified element after the list This causes side-effect.


set

public void set(int index,
                Parameter p)
Adds the specified element after the list This causes side-effect.


remove

public Parameter remove(int index)
Removes the element at the specified position in this Vector. shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the Vector.

Since:
JDK1.2

insertElementAt

public void insertElementAt(Parameter p,
                            int n)
Inserts the specified element into the list before the specified element of the list. This causes side-effect.


addAll

public void addAll(ParameterList lst)
Appends a list after this list.


subList

public ParameterList subList(int from_index,
                             int to_index)
Returns a view of the portion of this List between fromIndex, inclusive, and toIndex, exclusive. The returned List is backed by this List, but changes in the returned List are not reflected in this List.


accept

public void accept(openjava.ptree.util.ParseTreeVisitor v)
            throws ParseTreeException
Description copied from interface: ParseTree
Accepts a ParseTreeVisitor object as the role of a Visitor in the Visitor pattern, as the role of an Element in the Visitor pattern.

This invoke an appropriate visit() method on the accepted visitor.

Specified by:
accept in interface ParseTree
Specified by:
accept in class ParseTreeObject