|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ucl.xpath.ResultSequence org.ucl.xpath.RangeResultSequence
A range expression can be used to construct a sequence of consecutive integers.
Constructor Summary | |
RangeResultSequence(int start,
int end)
set the start and end of the range result sequence |
Method Summary | |
void |
add(AnyType item)
item is an integer to add to the range. |
void |
clear()
clear range |
void |
concat(ResultSequence rs)
remove the tail from the range given. |
ResultSequence |
create_new()
create new result sequence |
boolean |
empty()
asks if the range is empty? |
AnyType |
first()
retrieve the first item |
AnyType |
get(int i)
get item in index i |
java.util.ListIterator |
iterator()
interate through range. |
void |
release()
release |
int |
size()
get the size |
Methods inherited from class org.ucl.xpath.ResultSequence |
string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RangeResultSequence(int start, int end)
start
- is the integer position of the start of range.end
- is the integer position of the end of range.Method Detail |
public void add(AnyType item)
add
in class ResultSequence
item
- is an integer.public void concat(ResultSequence rs)
concat
in class ResultSequence
rs
- is the rangepublic java.util.ListIterator iterator()
iterator
in class ResultSequence
public AnyType get(int i)
ResultSequence
get
in class ResultSequence
i
- is the position.
public int size()
ResultSequence
size
in class ResultSequence
public void clear()
clear
in class ResultSequence
public ResultSequence create_new()
create_new
in class ResultSequence
public AnyType first()
ResultSequence
first
in class ResultSequence
public boolean empty()
empty
in class ResultSequence
public void release()
release
in class ResultSequence
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |