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


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



public class DefaultResultSequence
extends org.eclipse.wst.xml.xpath2.processor.ResultSequence
Default implementation of a result sequence.


Constructor Summary

DefaultResultSequence()
DefaultResultSequence(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)

Method Summary

public voidadd(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType item)
    
public voidclear()
     Clears the sequence.
public voidconcat(org.eclipse.wst.xml.xpath2.processor.ResultSequence rs)
    
public org.eclipse.wst.xml.xpath2.processor.ResultSequencecreate_new()
     Create a new sequence.
public booleanempty()
     Whether or not array _seq 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()
    
public org.eclipse.wst.xml.xpath2.api.typesystem.ItemTypesequenceType()
    
public intsize()
    

Constructor Detail

DefaultResultSequence

public DefaultResultSequence()

Constructor. an empty array is created


DefaultResultSequence

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


Methods Detail

add

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

Parameters

item - is added to array _seq


clear

public void clear()

Clears the sequence.


concat

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

Parameters

rs - ResultSequence


create_new

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

Create a new sequence.

Returns

org.eclipse.wst.xml.xpath2.processor.ResultSequence - The new sequence.


empty

public boolean empty()

Whether or not array _seq is empty

Returns

boolean - a 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 from array _seq


firstValue

public java.lang.Object firstValue()

Returns

java.lang.Object - first item from array _seq


get

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

Parameters

i - is the position of the array item that is wanted.

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - item i from array _seq


iterator

public java.util.ListIterator iterator()

Returns

java.util.ListIterator - the next iteration of array _seq


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 - integer of the size of array _seq