|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--openjava.ptree.ParseTreeObject | +--openjava.ptree.List | +--openjava.ptree.MemberDeclarationList
The MemberDeclarationList class presents for the node of parse tree of MemberDeclaration
Field Summary | |
private static String |
LNLN
|
Fields inherited from class openjava.ptree.List |
|
Fields inherited from class openjava.ptree.ParseTreeObject |
debugFlag, debugLevel, LN, out, writerStack |
Constructor Summary | |
MemberDeclarationList()
|
|
MemberDeclarationList(MemberDeclaration e0)
|
|
MemberDeclarationList(MemberDeclaration e0,
MemberDeclaration e1)
|
Method Summary | |
void |
accept(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(MemberDeclaration p)
Adds the specified element after the list This causes side-effect. |
void |
addAll(MemberDeclarationList lst)
Appends a list after this list. |
MemberDeclaration |
get(int n)
Gets the specified element at the index. |
void |
insertElementAt(MemberDeclaration p,
int n)
Inserts the specified element into the list before the specified element of the list. |
MemberDeclaration |
remove(int index)
Removes the element at the specified position in this Vector. |
void |
set(int index,
MemberDeclaration p)
Adds the specified element after the list This causes side-effect. |
MemberDeclarationList |
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, writeCode |
Methods inherited from class openjava.ptree.ParseTreeObject |
clone, eq, eq, equal, flushPrintWriter, getDebugFlag, getNest, getObjectID, getParent, getPrintWriter, getTab, hashCode, lastObjectID, makeCopy, popNest, popPrintWriter, pushNest, pushPrintWriter, replace, setDebugFlag, setDebugLevel, setNest, setParent, setPrintStream, setTab, toFlattenString, toString, writeDebug, writeDebugL, writeDebugLln, writeDebugln, writeDebugLR, writeDebugR, writeDebugRln, writeTab |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface openjava.ptree.ParseTree |
eq, getObjectID, makeCopy, replace, toFlattenString, toString |
Field Detail |
private static final String LNLN
Constructor Detail |
public MemberDeclarationList()
public MemberDeclarationList(MemberDeclaration e0)
public MemberDeclarationList(MemberDeclaration e0, MemberDeclaration e1)
Method Detail |
public MemberDeclaration get(int n)
n
- indexpublic void add(MemberDeclaration p)
p
- MemberDeclaration to be inserted into the listpublic void set(int index, MemberDeclaration p)
p
- MemberDeclaration to be inserted into the listpublic MemberDeclaration remove(int index)
index
- the index of the element to removed.
ArrayIndexOutOfBoundsException
- index out of range (index
< 0 || index >= size()).public void insertElementAt(MemberDeclaration p, int n)
p
- the element to be inserted into the listn
- number of the element before which insertion ocuurspublic void addAll(MemberDeclarationList lst)
lst
- a list to be appendedpublic MemberDeclarationList subList(int from_index, int to_index)
IndexOutOfBoundsException
- Illegal endpoint index value
(fromIndex < 0 || toIndex > size || fromIndex > toIndex).public void accept(ParseTreeVisitor v) throws ParseTreeException
ParseTree
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.
accept
in interface ParseTree
accept
in class ParseTreeObject
v
- a visitor
ParseTreeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |