|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.bmrb.starlibj.StarNode | +--EDU.bmrb.starlibj.LoopNameListNode
Holds the list of tag names that represents one nesting level of the loop.
To keep the API familiar to the user, I have tried to mimic the methods in java.util.vector as closely as possible.
Fields inherited from class EDU.bmrb.starlibj.StarNode |
colNum,
lineNum,
parent,
preComment |
Constructor Summary | |
LoopNameListNode()
empty constructor |
|
LoopNameListNode(LoopNameListNode copyMe)
copy constructor |
Method Summary | |
void |
addElement(java.lang.Object obj)
Just like the Vector method of the same name. |
void |
addElement(java.lang.Object obj,
DataValueNode val)
Just like the Vector method of the same name. |
java.lang.Object |
clone()
From interface Cloneable. |
boolean |
contains(java.lang.Object obj)
Just like the Vector method of the same name. |
DataNameNode |
elementAt(int index)
Just like the Vector method of the same name. |
java.util.Enumeration |
elements()
Just like the Vector method of the same name. |
DataNameNode |
firstElement()
Just like the Vector method of the same name. |
int |
getDepth()
Get the depth of this name list in the loop it is in. |
java.lang.String |
getLabel()
Returns the name of the first tag in the list, which is sometimes used to refer to the whole loop list. |
int |
indexOf(java.lang.Object obj)
Just like the Vector method of the same name. |
int |
indexOf(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
void |
insertElementAt(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
void |
insertElementAt(java.lang.Object obj,
int index,
DataValueNode val)
Identical to the version above, except that the value to be padded into the loop values is chosen by the caller instead of being a dot ('.') |
boolean |
isEmpty()
Just like the Vector method of the same name. |
DataNameNode |
lastElement()
Just like the Vector method of the same name. |
int |
lastIndexOf(java.lang.Object obj)
Just like the Vector method of the same name. |
int |
lastIndexOf(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
void |
removeElement(java.lang.Object obj)
Just like the Vector method of the same name. |
void |
removeElementAt(int index)
Similar to the Vector method of the same name. |
VectorCheckType |
searchByName(java.lang.String searchFor)
Find the name given in this name list. |
VectorCheckType |
searchForType(java.lang.Class type)
Find the type given in this name list. |
void |
setElementAt(java.lang.Object obj,
int index)
Just like the Vector method of the same name. |
void |
setSize(int newSize)
Just like the Vector method of the same name. |
int |
size()
Just like the Vector method of the same name. |
void |
Unparse(int indent)
Unparse prints the contents of the StarNode object out to the given stream. |
Methods inherited from class EDU.bmrb.starlibj.StarNode |
getColNum,
getLineNum,
getParallelCopy,
getParent,
getPreComment,
mySkips,
searchByTagValue,
searchForType,
searchForTypeByName,
searchForTypeByTagValue,
setColNum,
setLineNum,
setParent,
setPeer,
setPreComment |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LoopNameListNode()
public LoopNameListNode(LoopNameListNode copyMe)
Method Detail |
public java.lang.Object clone()
public void setSize(int newSize)
VectorCheckType.setSize
public int size()
java.util.Vector.size
public boolean isEmpty()
java.util.Vector.isEmpty
public java.util.Enumeration elements()
java.util.Vector.Enumeration
public boolean contains(java.lang.Object obj)
obj
- The string name.java.util.Vector.contains
public int indexOf(java.lang.Object obj)
obj
- The name to look for.java.util.Vector.indexOf
public int indexOf(java.lang.Object obj, int index)
obj
- The name to look for.index
- Start searching at this point in the vector.java.util.Vector.indexOf
public int lastIndexOf(java.lang.Object obj)
obj
- The name to look for.java.util.Vector.lastIndexOf
public int lastIndexOf(java.lang.Object obj, int index)
obj
- The name to look for.index
- Start searching back from this point in
the vector.java.util.Vector.lastIndexOf
public DataNameNode elementAt(int index)
index
- The index to return the name for.java.util.Vector.elementAt
public DataNameNode firstElement()
java.util.Vector.firstElement
public DataNameNode lastElement()
java.util.Vector.lastElement
public void setElementAt(java.lang.Object obj, int index) throws WrongElementType
obj
- The name to replace it with.index
- the position to replace.java.util.Vector.setElementAt
public void removeElementAt(int index)
index
- the position to remove.java.util.Vector.removeElementAt
public void insertElementAt(java.lang.Object obj, int index) throws WrongElementType
obj
- The name to insert.index
- the position to insert it in from of.java.util.Vector.insertElementAt
public void insertElementAt(java.lang.Object obj, int index, DataValueNode val) throws WrongElementType
obj
- The name to insert.index
- the position to insert it in from of.val
- The value to insert in the columns below.java.util.Vector.insertElementAt
public void addElement(java.lang.Object obj) throws WrongElementType
obj
- The name to add.java.util.Vector.addElement
public void addElement(java.lang.Object obj, DataValueNode val) throws WrongElementType
obj
- The name to add.val
- the new DataValueNode to copy from if need be.java.util.Vector.addElement
public void removeElement(java.lang.Object obj)
obj
- (string) The name to remove.java.util.Vector.removeElement
public int getDepth()
loop_ _tag1 # --. _tag2 # |-- depth 0. _tag3 # --' loop_ _tagA # --- depth 1. loop_ _tagX # --.__ depth 2. _tagY # --'
public java.lang.String getLabel()
public VectorCheckType searchByName(java.lang.String searchFor)
The search for names is case-insensitive.
searchFor
- look for this tag name.public VectorCheckType searchForType(java.lang.Class type)
searchFor
- look for this tag name.public void Unparse(int indent)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |