org.eclipse.tptp.platform.provisional.jre14.fastxpath.operations
Class EOperation
java.lang.Object
org.eclipse.tptp.platform.provisional.jre14.fastxpath.EExpression
org.eclipse.tptp.platform.provisional.jre14.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
|
Constructor Summary |
EOperation(org.apache.xpath.operations.Operation op)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
eLeft
protected IExpression eLeft
eRight
protected IExpression eRight
EOperation
public EOperation(org.apache.xpath.operations.Operation op)
- Parameters:
op -
instance
public IExpression instance(org.apache.xpath.Expression e)
- Overrides:
instance in class EExpression
- Parameters:
e -
- Returns:
- an E-Wrapper for e
- See Also:
org.eclipse.tptp.platform.provisional.jre14.fastxpath.IExpression#instance(org.apache.xpath.Expression)
getExpression
public org.apache.xpath.Expression getExpression()
- Returns:
- See Also:
Operation.getExpression()
getLeftOperand
public org.apache.xpath.Expression getLeftOperand()
- Returns:
- See Also:
Operation.getLeftOperand()
getRightOperand
public org.apache.xpath.Expression getRightOperand()
- Returns:
- See Also:
Operation.getRightOperand()
operate
public org.apache.xpath.objects.XObject operate(org.apache.xpath.objects.XObject left,
org.apache.xpath.objects.XObject right)
throws javax.xml.transform.TransformerException
- Parameters:
left - right -
- Returns:
-
- Throws:
javax.xml.transform.TransformerException
setExpression
public void setExpression(org.apache.xpath.Expression exp)
- Parameters:
exp -
setLeftRight
public void setLeftRight(org.apache.xpath.Expression l,
org.apache.xpath.Expression r)
- Parameters:
l - r -
operate
public org.apache.xpath.objects.XObject operate(EXObject left,
EXObject right)
throws javax.xml.transform.TransformerException
- Parameters:
left - right -
- Returns:
-
- Throws:
javax.xml.transform.TransformerException
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
- Parameters:
context -
- Returns:
-
- Throws:
ExpressionEvaluationException
javax.xml.transform.TransformerException- See Also:
org.eclipse.tptp.platform.provisional.jre14.fastxpath.IExpression#execute(org.eclipse.tptp.platform.provisional.jre14.fastxpath.FastXPathContext)
compile
public void compile(ICompilerContext compilationContext)
throws CodeGenerationError
- Specified by:
compile in interface IExpression- Overrides:
compile in class EExpression
- Parameters:
compilationContext -
- Throws:
CodeGenerationError- See Also:
org.eclipse.tptp.platform.provisional.jre14.fastxpath.IExpression#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
- Parameters:
level - - See Also:
org.eclipse.tptp.platform.provisional.jre14.fastxpath.IExpression#printGraph(int)
linkParent
public void linkParent(IExpression parent)
- Specified by:
linkParent in interface IExpression- Overrides:
linkParent in class EExpression
- Parameters:
parent - - See Also:
org.eclipse.tptp.platform.provisional.jre14.fastxpath.IExpression#linkParent(org.eclipse.tptp.platform.provisional.jre14.fastxpath.IExpression)
getELeft
public IExpression getELeft()
- Returns:
- left expression
getERight
public IExpression getERight()
- Returns:
- right expression
leftSideSatisfies
protected boolean leftSideSatisfies(java.lang.Object[] leftSide)