Package org.eclipse.wst.xml.xpath2.processor.internal


org.eclipse.wst.xml.xpath2.processor.internal
Class RangeResultSequence



public class RangeResultSequence
extends org.eclipse.wst.xml.xpath2.processor.ResultSequence
A range expression can be used to construct a sequence of consecutive integers.

Constructor Summary

RangeResultSequence(int start , int end)

Method Summary

public voidadd(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)
     item is an integer to add to the range.
public voidclear()
     clear range
public voidconcat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
     remove the tail from the range given.
public org.eclipse.wst.xml.xpath2.processor.ResultSequencecreate_new()
     create new result sequence
public booleanempty()
     asks if the range is empty?
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypefirst()
    
public java.lang.ObjectfirstValue()
    
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypeget(int i)
    
public java.util.ListIteratoriterator()
     interate through range.
public voidrelease()
     release
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemTypesequenceType()
    
public intsize()
    

Constructor Detail

RangeResultSequence

public RangeResultSequence(int start , int end)

set the start and end of the range result sequence


Methods Detail

add

public void add(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)

item is an integer to add to the range.

Parameters

item - is an integer.


clear

public void clear()

clear range


concat

public void concat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)

remove the tail from the range given.

Parameters

rs - is the range


create_new

public org.eclipse.wst.xml.xpath2.processor.ResultSequence create_new()

create new result sequence

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence - null


empty

public boolean empty()

asks if the range is empty?

Returns

boolean - boolean


first

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType first()

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - first item in range


firstValue

public java.lang.Object firstValue()

Returns

java.lang.Object - first item in range


get

public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType get(int i)

Parameters

i

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - item from range


iterator

public java.util.ListIterator iterator()

interate through range.

Returns

java.util.ListIterator - tail


release

public void release()

release


sequenceType

public org.eclipse.wst.xml.xpath2.api.typesystem.ItemType sequenceType()

Returns

org.eclipse.wst.xml.xpath2.api.typesystem.ItemType


size

public int size()

Returns

int - size