|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jxpath.ri.JXPathCompiledExpression
Field Summary | |
private Expression |
expression
|
private java.lang.String |
xpath
|
Constructor Summary | |
JXPathCompiledExpression(java.lang.String xpath,
Expression expression)
|
Method Summary | |
Pointer |
createPath(JXPathContext context)
Creates intermediate elements of the path by invoking an AbstractFactory, which should first be installed on the context by calling "setFactory". |
Pointer |
createPathAndSetValue(JXPathContext context,
java.lang.Object value)
The same as setValue, except it creates intermediate elements of the path by invoking an AbstractFactory, which should first be installed on the context by calling "setFactory". |
protected Expression |
getExpression()
|
Pointer |
getPointer(JXPathContext context,
java.lang.String xpath)
Traverses the xpath and returns a Pointer. |
java.lang.Object |
getValue(JXPathContext context)
Evaluates the xpath and returns the resulting object. |
java.lang.Object |
getValue(JXPathContext context,
java.lang.Class requiredType)
Evaluates the xpath, converts the result to the specified class and returns the resulting object. |
protected java.lang.String |
getXPath()
|
java.util.Iterator |
iterate(JXPathContext context)
Traverses the xpath and returns a Iterator of all results found for the path. |
java.util.Iterator |
iteratePointers(JXPathContext context)
Traverses the xpath and returns an Iterator of Pointers. |
void |
removeAll(JXPathContext context)
Remove all graph elements described by this expression |
void |
removePath(JXPathContext context)
Remove the graph element described by this expression |
void |
setValue(JXPathContext context,
java.lang.Object value)
Modifies the value of the property described by the supplied xpath. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.lang.String xpath
private Expression expression
Constructor Detail |
public JXPathCompiledExpression(java.lang.String xpath, Expression expression)
Method Detail |
protected java.lang.String getXPath()
protected Expression getExpression()
public java.lang.String toString()
public java.lang.Object getValue(JXPathContext context)
CompiledExpression
getValue
in interface CompiledExpression
CompiledExpression.getValue(JXPathContext)
public java.lang.Object getValue(JXPathContext context, java.lang.Class requiredType)
CompiledExpression
getValue
in interface CompiledExpression
CompiledExpression.getValue(JXPathContext, Class)
public void setValue(JXPathContext context, java.lang.Object value)
CompiledExpression
setValue
in interface CompiledExpression
CompiledExpression.setValue(JXPathContext, Object)
public Pointer createPath(JXPathContext context)
CompiledExpression
createPath
in interface CompiledExpression
CompiledExpression.createPath(JXPathContext)
public Pointer createPathAndSetValue(JXPathContext context, java.lang.Object value)
CompiledExpression
Will throw an exception if one of the following conditions occurs:
createPathAndSetValue
in interface CompiledExpression
CompiledExpression.createPathAndSetValue(JXPathContext, Object)
public java.util.Iterator iterate(JXPathContext context)
CompiledExpression
iterate
in interface CompiledExpression
CompiledExpression.iterate(JXPathContext)
public Pointer getPointer(JXPathContext context, java.lang.String xpath)
CompiledExpression
getPointer
in interface CompiledExpression
CompiledExpression.getPointer(JXPathContext, String)
public java.util.Iterator iteratePointers(JXPathContext context)
CompiledExpression
iteratePointers
in interface CompiledExpression
CompiledExpression.iteratePointers(JXPathContext)
public void removePath(JXPathContext context)
CompiledExpression
removePath
in interface CompiledExpression
CompiledExpression.removePath(JXPathContext)
public void removeAll(JXPathContext context)
CompiledExpression
removeAll
in interface CompiledExpression
CompiledExpression.removeAll(JXPathContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |