public class ExtensionFunction extends Operation
Expression.PointerIterator, Expression.ValueIterator| Modifier and Type | Field and Description |
|---|---|
private QName |
functionName |
NOT_A_NUMBER, ONE, ZERO| Constructor and Description |
|---|
ExtensionFunction(QName functionName,
Expression[] args)
Create a new ExtensionFunction.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
compute(EvalContext context)
Evaluates the expression.
|
boolean |
computeContextDependent()
An extension function gets the current context, therefore it MAY be
context dependent.
|
java.lang.Object |
computeValue(EvalContext context)
Evaluates the expression.
|
private java.lang.Object |
convert(java.lang.Object object)
Convert any incoming context to a value.
|
QName |
getFunctionName()
Get the function name
|
java.lang.String |
toString() |
getArgumentsisContextDependent, iterate, iteratePointersprivate QName functionName
public ExtensionFunction(QName functionName, Expression[] args)
functionName - name of the functionargs - Expression[] of function argspublic QName getFunctionName()
public boolean computeContextDependent()
computeContextDependent in class Operationpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object compute(EvalContext context)
Expressioncompute in class Expressioncontext - evaluation contextpublic java.lang.Object computeValue(EvalContext context)
ExpressioncomputeValue in class Expressioncontext - evaluation contextprivate java.lang.Object convert(java.lang.Object object)
object - Object to convertobject unscathed.