TPTP 4.2.0 Platform Project
Public API Specification

org.eclipse.tptp.platform.provisional.sun50.fastxpath.operations
Class EOperation

java.lang.Object
  extended byorg.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression
      extended byorg.eclipse.tptp.platform.provisional.sun50.fastxpath.operations.EOperation
All Implemented Interfaces:
IExpression
Direct Known Subclasses:
EAnd, EDiv, EEquals, EGt, EGte, ELt, ELte, EMinus, EMod, EMult, ENotEquals, EOr, EPlus

public class EOperation
extends EExpression


Field Summary
protected  IExpression eLeft
           
protected  IExpression eRight
           
 
Constructor Summary
EOperation(Operation op)
           
 
Method Summary
 void compile(ICompilerContext compilationContext)
           
 java.lang.Object[] execute(FastXPathContext context)
           
 IExpression getELeft()
           
 IExpression getERight()
           
 Expression getExpression()
           
 Expression getLeftOperand()
           
protected  java.lang.String getOpAsString()
           
 Expression getRightOperand()
           
 IExpression instance(Expression e)
           
protected  boolean leftSideSatisfies(java.lang.Object[] leftSide)
           
 void linkParent(IExpression parent)
           
 XObject operate(XObject left, XObject right)
           
 void printGraph(int level)
           
 void setExpression(Expression exp)
           
 void setLeftRight(Expression l, Expression r)
           
 
Methods inherited from class org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression
getParent, indent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eLeft

protected IExpression eLeft

eRight

protected IExpression eRight
Constructor Detail

EOperation

public EOperation(Operation op)
Parameters:
op -
Method Detail

instance

public IExpression instance(Expression e)
Overrides:
instance in class EExpression
See Also:
org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression#instance(com.sun.org.apache.xpath.internal.Expression)

getExpression

public Expression getExpression()
Returns:
See Also:
Operation#getExpression()

getLeftOperand

public Expression getLeftOperand()
Returns:
See Also:
Operation#getLeftOperand()

getRightOperand

public Expression getRightOperand()
Returns:
See Also:
Operation#getRightOperand()

operate

public XObject operate(XObject left,
                       XObject right)
                throws javax.xml.transform.TransformerException
Parameters:
left -
right -
Returns:
Throws:
javax.xml.transform.TransformerException

setExpression

public void setExpression(Expression exp)
Parameters:
exp -

setLeftRight

public void setLeftRight(Expression l,
                         Expression r)
Parameters:
l -
r -

execute

public java.lang.Object[] execute(FastXPathContext context)
                           throws javax.xml.transform.TransformerException,
                                  ExpressionEvaluationException
Specified by:
execute in interface IExpression
Overrides:
execute in class EExpression
Throws:
javax.xml.transform.TransformerException
ExpressionEvaluationException
See Also:
org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression#execute(org.eclipse.tptp.platform.provisional.sun50.fastxpath.FastXPathContext)

compile

public void compile(ICompilerContext compilationContext)
             throws CodeGenerationError
Specified by:
compile in interface IExpression
Overrides:
compile in class EExpression
Throws:
CodeGenerationError
See Also:
org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression#compile(CompilerContext)

getOpAsString

protected java.lang.String getOpAsString()

printGraph

public void printGraph(int level)
Specified by:
printGraph in interface IExpression
Overrides:
printGraph in class EExpression
See Also:
EExpression.printGraph(int)

linkParent

public void linkParent(IExpression parent)
Specified by:
linkParent in interface IExpression
Overrides:
linkParent in class EExpression
See Also:
org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression#linkParent(org.eclipse.tptp.platform.provisional.sun50.fastxpath.EExpression)

getELeft

public IExpression getELeft()
Returns:
left expression

getERight

public IExpression getERight()
Returns:
right expression

leftSideSatisfies

protected boolean leftSideSatisfies(java.lang.Object[] leftSide)

TPTP 4.2.0 Platform Project
Public API Specification