org.apache.commons.jxpath.ri

Class JXPathCompiledExpression

Implemented Interfaces:
CompiledExpression

public class JXPathCompiledExpression
extends java.lang.Object
implements CompiledExpression

Version:
$Revision: 1.9 $ $Date: 2004/02/29 14:17:45 $
Author:
Dmitri Plotnikov

Constructor Summary

JXPathCompiledExpression(String xpath, Expression expression)

Method Summary

Pointer
createPath(JXPathContext context)
Pointer
createPathAndSetValue(JXPathContext context, Object value)
protected Expression
getExpression()
Pointer
getPointer(JXPathContext context, String xpath)
Object
getValue(JXPathContext context)
Object
getValue(JXPathContext context, Class requiredType)
protected String
getXPath()
Iterator
iterate(JXPathContext context)
Iterator
iteratePointers(JXPathContext context)
void
removeAll(JXPathContext context)
void
removePath(JXPathContext context)
void
setValue(JXPathContext context, Object value)
String
toString()

Constructor Details

JXPathCompiledExpression

public JXPathCompiledExpression(String xpath,
                                Expression expression)

Method Details

createPath

public Pointer createPath(JXPathContext context)
Specified by:
createPath in interface CompiledExpression

createPathAndSetValue

public Pointer createPathAndSetValue(JXPathContext context,
                                     Object value)
Specified by:
createPathAndSetValue in interface CompiledExpression

getExpression

protected Expression getExpression()

getPointer

public Pointer getPointer(JXPathContext context,
                          String xpath)
Specified by:
getPointer in interface CompiledExpression

getValue

public Object getValue(JXPathContext context)
Specified by:
getValue in interface CompiledExpression

getValue

public Object getValue(JXPathContext context,
                       Class requiredType)
Specified by:
getValue in interface CompiledExpression

getXPath

protected String getXPath()

iterate

public Iterator iterate(JXPathContext context)
Specified by:
iterate in interface CompiledExpression

iteratePointers

public Iterator iteratePointers(JXPathContext context)
Specified by:
iteratePointers in interface CompiledExpression

removeAll

public void removeAll(JXPathContext context)
Specified by:
removeAll in interface CompiledExpression

removePath

public void removePath(JXPathContext context)
Specified by:
removePath in interface CompiledExpression

setValue

public void setValue(JXPathContext context,
                     Object value)
Specified by:
setValue in interface CompiledExpression

toString

public String toString()