org.apache.commons.jxpath.ri.compiler

Class CoreOperationUnion


public class CoreOperationUnion
extends CoreOperation

Implementation of Expression for the operation "|".
Version:
$Revision: 1.3 $ $Date: 2004/02/29 14:17:39 $
Author:
Dmitri Plotnikov

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.commons.jxpath.ri.compiler.Expression

Expression.PointerIterator, Expression.ValueIterator

Field Summary

Fields inherited from class org.apache.commons.jxpath.ri.compiler.Operation

args

Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression

NOT_A_NUMBER, ONE, ZERO

Constructor Summary

CoreOperationUnion(args[] )

Method Summary

Object
computeValue(EvalContext context)
protected int
getPrecedence()
Computes the precedence of the operation.
String
getSymbol()
Returns the XPath symbol for this operation, e.g.
protected boolean
isSymmetric()
Returns true if the operation is not sensitive to the order of arguments, e.g.

Methods inherited from class org.apache.commons.jxpath.ri.compiler.CoreOperation

compute, computeValue, getPrecedence, getSymbol, isSymmetric, toString

Methods inherited from class org.apache.commons.jxpath.ri.compiler.Operation

computeContextDependent, getArguments

Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression

compute, computeContextDependent, computeValue, isContextDependent, iterate, iteratePointers

Constructor Details

CoreOperationUnion

public CoreOperationUnion(args[] )

Method Details

computeValue

public Object computeValue(EvalContext context)
Overrides:
computeValue in interface CoreOperation

getPrecedence

protected int getPrecedence()
Computes the precedence of the operation.
Overrides:
getPrecedence in interface CoreOperation

getSymbol

public String getSymbol()
Returns the XPath symbol for this operation, e.g. "+", "div", etc.
Overrides:
getSymbol in interface CoreOperation

isSymmetric

protected boolean isSymmetric()
Returns true if the operation is not sensitive to the order of arguments, e.g. "=", "and" etc, and false if it is, e.g. "<=", "div".
Overrides:
isSymmetric in interface CoreOperation