public class ExtensionFunction extends Operation
Expression.PointerIterator, Expression.ValueIterator
NOT_A_NUMBER, ONE, ZERO
Constructor and Description |
---|
ExtensionFunction(QName functionName,
Expression[] args)
Create a new ExtensionFunction.
|
Modifier and Type | Method and Description |
---|---|
Object |
compute(EvalContext context)
Evaluates the expression.
|
boolean |
computeContextDependent()
An extension function gets the current context, therefore it MAY be
context dependent.
|
Object |
computeValue(EvalContext context)
Evaluates the expression.
|
QName |
getFunctionName()
Get the function name
|
String |
toString() |
getArguments
isContextDependent, iterate, iteratePointers
public ExtensionFunction(QName functionName, Expression[] args)
functionName
- name of the functionargs
- Expression[] of function argspublic QName getFunctionName()
public boolean computeContextDependent()
computeContextDependent
in class Operation
public Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation contextpublic Object computeValue(EvalContext context)
Expression
computeValue
in class Expression
context
- evaluation contextCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.