|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jxpath.ri.EvalContext
org.apache.commons.jxpath.ri.axes.RootContext
public class RootContext
EvalContext that is used to hold the root node for the path traversal.
Field Summary | |
---|---|
static Object |
UNKNOWN_VALUE
|
Fields inherited from class org.apache.commons.jxpath.ri.EvalContext |
---|
parentContext, position, rootContext |
Constructor Summary | |
---|---|
RootContext(JXPathContextReferenceImpl jxpathContext,
NodePointer pointer)
Create a new RootContext. |
Method Summary | |
---|---|
EvalContext |
getAbsoluteRootContext()
Get absolute root context |
EvalContext |
getConstantContext(Object constant)
Get a context that points to the specified object. |
NodePointer |
getCurrentNodePointer()
Returns the current context node. |
int |
getCurrentPosition()
Get the current position. |
Function |
getFunction(QName functionName,
Object[] parameters)
Get the specified function from the context. |
JXPathContext |
getJXPathContext()
Get the JXPathContext in which this function is being evaluated. |
Object |
getRegisteredValue(int id)
Get a registered value. |
RootContext |
getRootContext()
Returns the root context of the path, which provides easy access to variables and functions. |
Object |
getValue()
Typically returns the NodeSet by calling getNodeSet(), but will be overridden for contexts that more naturally produce individual values, e.g. |
EvalContext |
getVariableContext(QName variableName)
Get variable context. |
boolean |
nextNode()
Returns true if there is another object in the current set. |
boolean |
nextSet()
Returns true if there is another sets of objects to interate over. |
boolean |
setPosition(int position)
Moves the current position to the specified index. |
int |
setRegisteredValue(Object value)
Set the next registered value. |
String |
toString()
|
Methods inherited from class org.apache.commons.jxpath.ri.EvalContext |
---|
getContextNodeList, getContextNodePointer, getDocumentOrder, getNodeSet, getPosition, getSingleNodePointer, hasNext, isChildOrderingRequired, next, remove, reset, sortPointers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Object UNKNOWN_VALUE
Constructor Detail |
---|
public RootContext(JXPathContextReferenceImpl jxpathContext, NodePointer pointer)
jxpathContext
- contextpointer
- pointerMethod Detail |
---|
public JXPathContext getJXPathContext()
ExpressionContext
getJXPathContext
in interface ExpressionContext
getJXPathContext
in class EvalContext
public RootContext getRootContext()
EvalContext
getRootContext
in class EvalContext
public EvalContext getAbsoluteRootContext()
public NodePointer getCurrentNodePointer()
EvalContext
getCurrentNodePointer
in class EvalContext
public Object getValue()
EvalContext
getValue
in class EvalContext
public int getCurrentPosition()
EvalContext
getCurrentPosition
in class EvalContext
public boolean nextNode()
EvalContext
nextNode
in class EvalContext
public boolean nextSet()
EvalContext
nextSet
in class EvalContext
public boolean setPosition(int position)
EvalContext
setPosition
in class EvalContext
position
- to set
public EvalContext getConstantContext(Object constant)
constant
- object
public EvalContext getVariableContext(QName variableName)
variableName
- variable name
public Function getFunction(QName functionName, Object[] parameters)
functionName
- QNameparameters
- Object[]
public Object getRegisteredValue(int id)
id
- int
public int setRegisteredValue(Object value)
value
- Object
public String toString()
toString
in class EvalContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |