public class ExtensionFunction extends Operation
Expression.PointerIterator, Expression.ValueIterator
Modifier and Type | Field | Description |
---|---|---|
private QName |
functionName |
NOT_A_NUMBER, ONE, ZERO
Constructor | Description |
---|---|
ExtensionFunction(QName functionName,
Expression[] args) |
Create a new ExtensionFunction.
|
Modifier and Type | Method | 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() |
isContextDependent, iterate, iteratePointers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getArguments
private 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 Operation
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object compute(EvalContext context)
Expression
compute
in class Expression
context
- evaluation contextpublic java.lang.Object computeValue(EvalContext context)
Expression
computeValue
in class Expression
context
- evaluation contextprivate java.lang.Object convert(java.lang.Object object)
object
- Object to convertobject
unscathed.