Package org.eclipse.wst.xml.xpath2.processor.internal
public class RangeResultSequence extends org.eclipse.wst.xml.xpath2.processor.ResultSequenceA range expression can be used to construct a sequence of consecutive integers.
Constructor Summary |
RangeResultSequence(int start
,
int end) |
Method Summary | |
public void | add(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item) item is an integer to add to the range. |
public void | clear() clear range |
public void | concat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs) remove the tail from the range given. |
public org.eclipse.wst.xml.xpath2.processor.ResultSequence | create_new() create new result sequence |
public boolean | empty() asks if the range is empty? |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType | first() |
public java.lang.Object | firstValue() |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType | get(int i) |
public java.util.ListIterator | iterator() interate through range. |
public void | release() release |
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType | sequenceType() |
public int | size() |
Constructor Detail |
public RangeResultSequence(int start
,
int end)
set the start and end of the range result sequence
Methods Detail |
public void add(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)
item is an integer to add to the range.
item
- is an integer.
public void clear()
clear range
public void concat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
remove the tail from the range given.
rs
- is the range
public org.eclipse.wst.xml.xpath2.processor.ResultSequence create_new()
create new result sequence
org.eclipse.wst.xml.xpath2.processor.ResultSequence
- null
public boolean empty()
asks if the range is empty?
boolean
- boolean
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType first()
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType
- first item in range
public java.lang.Object firstValue()
java.lang.Object
- first item in range
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType get(int i)
i
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType
- item from range
public java.util.ListIterator iterator()
interate through range.
java.util.ListIterator
- tail
public void release()
release
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType sequenceType()
org.eclipse.wst.xml.xpath2.api.typesystem.ItemType
public int size()
int
- size