Class Operation
- java.lang.Object
-
- org.apache.commons.jxpath.ri.compiler.Expression
-
- org.apache.commons.jxpath.ri.compiler.Operation
-
- Direct Known Subclasses:
CoreFunction
,CoreOperation
,ExtensionFunction
public abstract class Operation extends Expression
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- 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 Modifier and Type Field Description protected Expression[]
args
Expression[] of arguments-
Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression
NOT_A_NUMBER, ONE, ZERO
-
-
Constructor Summary
Constructors Constructor Description Operation(Expression[] args)
Create a new Operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
computeContextDependent()
Implemented by subclasses and result is cached by isContextDependent()Expression[]
getArguments()
Get the arguments.-
Methods inherited from class org.apache.commons.jxpath.ri.compiler.Expression
compute, computeValue, isContextDependent, iterate, iteratePointers
-
-
-
-
Field Detail
-
args
protected Expression[] args
Expression[] of arguments
-
-
Constructor Detail
-
Operation
public Operation(Expression[] args)
Create a new Operation.- Parameters:
args
- Expression[]
-
-
Method Detail
-
getArguments
public Expression[] getArguments()
Get the arguments.- Returns:
- Expression[]
-
computeContextDependent
public boolean computeContextDependent()
Description copied from class:Expression
Implemented by subclasses and result is cached by isContextDependent()- Specified by:
computeContextDependent
in classExpression
- Returns:
- calculated context-dependentness as boolean
-
-