TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.provisional.jre14.fastxpath
Class EExpression

java.lang.Object
  extended byorg.eclipse.tptp.platform.provisional.jre14.fastxpath.EExpression
All Implemented Interfaces:
IExpression
Direct Known Subclasses:
EFunction, ENodeTest, EOperation, EUnaryOperation, EVariable, EXObject

public class EExpression
extends java.lang.Object
implements IExpression

Root object of the xpath expression hierarchy. since FastXPath uses Xalan as its xpath parser, we have a parallel hierarchy of expression. EExpression is the root node of our hirarchy. Each node of this parallel hierachy acts as a delegate to the equivalent node of the xpath parser. Irrelevent methods have been ommited since most of them are for processing xpath expressions on native xml and do not help in processing xpath on XML <->Java Binding Objects. Every relevent instance of Expression has an equivalent EExpression


Constructor Summary
EExpression()
           
 
Method Summary
 void compile(ICompilerContext compilationContext)
           
 java.lang.Object[] execute(FastXPathContext context)
           
 java.lang.String getAxis(int axis)
          Fix for IBM JRE 1.5
 IExpression getParent()
           
 java.lang.String indent(int indent)
           
 IExpression instance(org.apache.xpath.Expression e)
           
 void linkParent(IExpression newParent)
           
 void printGraph(int level)
           
 void setParent(IExpression parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EExpression

public EExpression()
Method Detail

instance

public IExpression instance(org.apache.xpath.Expression e)
Parameters:
e -
Returns:
an E-Wrapper for e

execute

public java.lang.Object[] execute(FastXPathContext context)
                           throws javax.xml.transform.TransformerException,
                                  ExpressionEvaluationException
Specified by:
execute in interface IExpression
Parameters:
context -
Returns:
Throws:
javax.xml.transform.TransformerException
ExpressionEvaluationException

printGraph

public void printGraph(int level)
Specified by:
printGraph in interface IExpression
Parameters:
level -

indent

public java.lang.String indent(int indent)
Specified by:
indent in interface IExpression
Parameters:
indent -
Returns:
correct indentation for printing the expression tree

linkParent

public void linkParent(IExpression newParent)
Specified by:
linkParent in interface IExpression
Parameters:
newParent -

compile

public void compile(ICompilerContext compilationContext)
             throws CodeGenerationError
Specified by:
compile in interface IExpression
Parameters:
compilationContext -
Throws:
CodeGenerationError

getParent

public IExpression getParent()
Specified by:
getParent in interface IExpression
Returns:
Returns the parent.

setParent

public void setParent(IExpression parent)
Specified by:
setParent in interface IExpression
Parameters:
parent - The parent to set.

getAxis

public java.lang.String getAxis(int axis)
Fix for IBM JRE 1.5

Parameters:
axis -
Returns:

TPTP 4.2.0 Platform Project
Public API Specification