com.novell.xsl.extensions
Class JavaMethodInstance
java.lang.Object
com.novell.xml.xpath.Function
com.novell.xsl.extensions.JavaInstance
com.novell.xsl.extensions.JavaMethodInstance
- public class JavaMethodInstance
- extends JavaInstance
This class represents a single member of a java class. It is
created by JavaMethod for a particular function call.
JavaMethodInstance
public JavaMethodInstance(FunctionSignature baseSignature,
Method method)
- Create the wrapper for the java class member.
- Parameters:
baseSignature
- The base signature of the member, needed only for name.method
- The Method object to use for this function.
invoke
public ExpressionValue invoke(Object[] args)
throws XPathEvaluationException
- Invoke the java method using the passed list of arguments.
- Overrides:
invoke
in class Function
- Parameters:
args
- List of arguments.
- Returns:
- An object containing the result of the function invocation.
- Throws:
XPathEvaluationException