Package org.eclipse.wst.xml.xpath2.processor.internal
public class Focus extends java.lang.Objectset the focus from a result sequence
Constructor Summary |
Focus(org.eclipse.wst.xml.xpath2.api.ResultSequence rs) |
Method Summary | |
public boolean | advance_cp()Checks to see if possible to advance rs. |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType | context_item()Retrieves previous item from current context position. |
public int | last()returns the position of the last item in rs. |
public int | position()returns an integer of the current position. |
public void | set_position(int p)sets the position. |
Constructor Detail |
public Focus(org.eclipse.wst.xml.xpath2.api.ResultSequence rs)
Sets the _rs to rs and context position to 1.
Methods Detail |
public boolean advance_cp()
Checks to see if possible to advance rs.
boolean - the boolean.
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType context_item()
Retrieves previous item from current context position.
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - the item from _rs, or null if there is no context item.
public int last()
returns the position of the last item in rs.
int - the size of rs.
public int position()
returns an integer of the current position.
int - the current position of rs.
public void set_position(int p)
sets the position.
p - is the position that is set.