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


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



public class Focus
extends java.lang.Object
set the focus from a result sequence

Constructor Summary

Focus(org.eclipse.wst.xml.xpath2.api.ResultSequence rs)

Method Summary

public booleanadvance_cp()
     Checks to see if possible to advance rs.
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyTypecontext_item()
     Retrieves previous item from current context position.
public intlast()
     returns the position of the last item in rs.
public intposition()
     returns an integer of the current position.
public voidset_position(int p)
     sets the position.

Constructor Detail

Focus

public Focus(org.eclipse.wst.xml.xpath2.api.ResultSequence rs)

Sets the _rs to rs and context position to 1.


Methods Detail

advance_cp

public boolean advance_cp()

Checks to see if possible to advance rs.

Returns

boolean - the boolean.


context_item

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

Retrieves previous item from current context position.

Returns

org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - the item from _rs, or null if there is no context item.


last

public int last()

returns the position of the last item in rs.

Returns

int - the size of rs.


position

public int position()

returns an integer of the current position.

Returns

int - the current position of rs.


set_position

public void set_position(int p)

sets the position.

Parameters

p - is the position that is set.