|
|||||||||
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.LoopRowNode
A LoopRowNode is a single tuple of values for a loop, like a 'row' in a table. It behaves like a VectorCheckType class, implementing most of the same API as VectorCheckType.
VectorCheckType
Fields inherited from class EDU.bmrb.starlibj.StarNode |
colNum, lineNum, parent, preComment |
Constructor Summary | |
LoopRowNode()
Default constructor |
|
LoopRowNode(LoopRowNode copyMe)
copy constructor |
Method Summary | |
void |
addElement(DataValueNode val)
Just like the Vector method of the same name, but It will refuse to work if this row is already inside a DataLoopNode, and it will generate an exception. |
int |
capacity()
Return the max number of characters that this row can hold before it needs to allocate a bigger chunk of heap memory. |
java.lang.Object |
clone()
clone - make a deep copy of me and return a reference to it. |
DataValueNode |
elementAt(int index)
Just like the Vector method of the same name. |
void |
ensureCapacity(int newCap)
Enlarge capacity of the stringbuffer so that it can hold newCap characters. |
DataValueNode |
firstElement()
Just like the Vector method of the same name. |
LoopTableNode |
getInnerLoop()
Returns a reference to the inner loop that is under this row. |
void |
insertElementAt(DataValueNode val,
int index)
Just like the Vector method of the same name, but It will refuse to work if this row is already inside a DataLoopNode, and it will generate an exception. |
boolean |
isEmpty()
Just like the Vector method of the same name. |
DataValueNode |
lastElement()
Just like the Vector method of the same name. |
void |
removeElementAt(int index)
Similar to the Vector method of the same name, however It will refuse to work if this row is already inside a DataLoopNode, and it will generate an exception. |
void |
removeInnerLoop()
De-links the inner loop from this row. |
VectorCheckType |
searchForType(java.lang.Class type)
Find all values of the type given in this table - this is fairly nonsensical because all values in the table are of type DataValueNode, but this function is here for orthogonality with the base class StarNode. |
VectorCheckType |
searchForType(java.lang.Class type,
short delim)
Find the type given in this row - Return all the matching values that meet the criteria given in the parameters. |
void |
setElementAt(DataValueNode val,
int index)
Just like the Vector method of the same name. |
void |
setInnerLoop(LoopTableNode l)
Allows the user to set the inner loop under this row. |
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, searchByName, searchByTagValue, 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 LoopRowNode()
public LoopRowNode(LoopRowNode copyMe)
Method Detail |
public java.lang.Object clone()
clone
in class StarNode
EDU.bmrb.starlibj.StarNode
StarFileNode
public void ensureCapacity(int newCap)
public int capacity()
if( numberOfCharactersIKnowINeed > row.capacity() ) row.ensureCapacity( numberOfCharactersIKnowINeed );
public int size()
VectorCheckType.size
public boolean isEmpty()
VectorCheckType.isEmpty
public DataValueNode elementAt(int index)
VectorCheckType.elementAt
public DataValueNode firstElement()
VectorCheckType.firstElement
public DataValueNode lastElement()
VectorCheckType.lastElement
public void setElementAt(DataValueNode val, int index)
VectorCheckType.setElementAt
public void removeElementAt(int index) throws OperationCausesMismatchedLoopData
VectorCheckType.removeElementAt
public void insertElementAt(DataValueNode val, int index) throws OperationCausesMismatchedLoopData
VectorCheckType.insertElementAt
public void addElement(DataValueNode val) throws OperationCausesMismatchedLoopData
VectorCheckType.addElement
public LoopTableNode getInnerLoop()
public void setInnerLoop(LoopTableNode l) throws OperationCausesMismatchedLoopData
OperationCausesMismatchedLoopData
- when the new row
does not match the tagnames for this loop. If this row is not
in a loop yet, then this check is not performed, obviously.public void removeInnerLoop()
public VectorCheckType searchForType(java.lang.Class type)
type
- look for this type.public VectorCheckType searchForType(java.lang.Class type, short delim)
searchForType
in class StarNode
type
- look for this typedelim
- Look for this delimiter type.public void Unparse(int indent)
Unparse
in class StarNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |