org.apache.commons.jxpath.ri.compiler

Class ExtensionFunction


public class ExtensionFunction
extends Operation

Represents an element of the parse tree representing an extension function call.
Version:
$Revision: 1.13 $ $Date: 2004/03/25 05:42:01 $
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 inherited from class org.apache.commons.jxpath.ri.compiler.Operation

args

Fields inherited from class org.apache.commons.jxpath.ri.compiler.Expression

NOT_A_NUMBER, ONE, ZERO

Constructor Summary

ExtensionFunction(QName functionName, args[] )

Method Summary

Object
compute(EvalContext context)
boolean
computeContextDependent()
An extension function gets the current context, therefore it MAY be context dependent.
Object
computeValue(EvalContext context)
QName
getFunctionName()
String
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

Constructor Details

ExtensionFunction

public ExtensionFunction(QName functionName,
                         args[] )

Method Details

compute

public Object compute(EvalContext context)
Overrides:
compute in interface Expression

computeContextDependent

public boolean computeContextDependent()
An extension function gets the current context, therefore it MAY be context dependent.
Overrides:
computeContextDependent in interface Operation

computeValue

public Object computeValue(EvalContext context)
Overrides:
computeValue in interface Expression

getFunctionName

public QName getFunctionName()

toString

public String toString()