Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.commons.jxpath.ri.compiler.Expression
org.apache.commons.jxpath.ri.compiler.Operation
org.apache.commons.jxpath.ri.compiler.CoreOperation
org.apache.commons.jxpath.ri.compiler.CoreOperationAdd
public class CoreOperationAdd
extends CoreOperation
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.Expression | |
NOT_A_NUMBER , ONE , ZERO |
Constructor Summary | |
|
Method Summary | |
Object |
|
protected int |
|
String |
|
protected boolean |
|
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 |
public Object computeValue(EvalContext context)
- Overrides:
- computeValue in interface CoreOperation
protected int getPrecedence()
Computes the precedence of the operation.
- Overrides:
- getPrecedence in interface CoreOperation
public String getSymbol()
Returns the XPath symbol for this operation, e.g. "+", "div", etc.
- Overrides:
- getSymbol in interface CoreOperation
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