jd.xml.xslt.extension
Class JavaFunction

java.lang.Object
  extended byjd.xml.xpath.expr.ExpressionImpl
      extended byjd.xml.xpath.expr.VariableExpression
          extended byjd.xml.xpath.expr.function.VariableFunction
              extended byjd.xml.xslt.extension.ExtensionFunction
                  extended byjd.xml.xslt.extension.JavaFunction
All Implemented Interfaces:
Expression, Function

public class JavaFunction
extends ExtensionFunction

A XPath function that is evaluated by calling a java method.


Field Summary
 
Fields inherited from class jd.xml.xpath.expr.function.VariableFunction
arguments_
 
Fields inherited from interface jd.xml.xpath.expr.function.Function
NULL_ARGUMENTS
 
Fields inherited from interface jd.xml.xpath.expr.Expression
DEP_CONTEXT_NODE, DEP_CONTEXT_POSITION, DEP_CONTEXT_SIZE, DEP_CONTEXT_STATIC, DEP_NONE, DEP_UNKNOWN
 
Constructor Summary
JavaFunction(Constructor constructor, boolean hasJdContext, boolean hasW3cContext)
           
JavaFunction(Expression object, Method method, boolean hasJdContext, boolean hasW3cContext)
           
 
Method Summary
 XObject toXObject(XPathContext context)
          Evaluate the expression to a XObject.
 
Methods inherited from class jd.xml.xslt.extension.ExtensionFunction
getContextDependencies, getFunctionType
 
Methods inherited from class jd.xml.xpath.expr.function.VariableFunction
accept, getArgument, setArguments
 
Methods inherited from class jd.xml.xpath.expr.VariableExpression
getResultType, toBooleanValue, toNumberValue, toStringValue
 
Methods inherited from class jd.xml.xpath.expr.ExpressionImpl
hasContextDependencies, isUniqueFilter, matchesFilter, toNode, toNodeSet, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jd.xml.xpath.expr.Expression
getResultType, hasContextDependencies, isUniqueFilter, matchesFilter, toBooleanValue, toNode, toNodeSet, toNumberValue, toString, toStringValue
 

Constructor Detail

JavaFunction

public JavaFunction(Constructor constructor,
                    boolean hasJdContext,
                    boolean hasW3cContext)

JavaFunction

public JavaFunction(Expression object,
                    Method method,
                    boolean hasJdContext,
                    boolean hasW3cContext)
Method Detail

toXObject

public XObject toXObject(XPathContext context)
Description copied from interface: Expression
Evaluate the expression to a XObject.

Parameters:
context - the evaluation context