com.novell.xsl.extensions
Class JavaConstructorInstance
java.lang.Object
com.novell.xml.xpath.Function
com.novell.xsl.extensions.JavaInstance
com.novell.xsl.extensions.JavaConstructorInstance
- public class JavaConstructorInstance
- extends JavaInstance
This class invokes a single java Class constructor (i.e.,
only the constructor with a particular signature). Objects
of this class are returned by JavaConstructor objects, which
represent all public constructors for a particular Java Class.
JavaConstructorInstance
public JavaConstructorInstance(FunctionSignature baseSignature,
Constructor constructor)
- Construct an object for a particular constructor.
- Parameters:
baseSignature
- The base signature of the JavaConstructor used for the
expanded name.constructor
- The Constructor object to use for this instance.
invoke
public ExpressionValue invoke(Object[] args)
throws XPathEvaluationException
- Invoke the function 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