| java.lang.Object tcl.lang.SearchId
SearchId | class SearchId (Code) | | SearchId is used only by the ArrayVar class. When searchstart is
called on an Tcl array, a SearchId is created that contains the
Enumerated list of all the array keys; a String that uniquely
identifies the searchId for the Tcl array, and an index that is
used when to generate other unique strings.
|
Constructor Summary | |
| SearchId(Iterator iter, String s, int i) A SearchId is only created from an ArrayVar object. |
SearchId | SearchId(Iterator iter, String s, int i)(Code) | | A SearchId is only created from an ArrayVar object. The ArrayVar
constructs a new SearchId object by passing it's current keys
stored as an enumeration, a unique string that ArrayVar creates,
and an index value used for future SearchId objects.
Parameters: e - initial Enumeration Parameters: s - String as the unique identifier for the searchId Parameters: e - index value for this object |
equals | boolean equals(String s)(Code) | | Tests for equality based on the value of str
Parameters: none - boolean based on the equality of the string |
getIndex | int getIndex()(Code) | | Return the integer value of the index. Used in ArrayVar to
generate the next unique SearchId string.
Parameters: none - |
getIterator | Iterator getIterator()(Code) | | Return the Iterator for the SearchId object. This is
used in the ArrayCmd class for the anymore, donesearch,
and nextelement functions.
Parameters: none - The Iterator for the SearchId object |
toString | public String toString()(Code) | | Return the str that is the unique identifier of the SearchId
|
|
|