org.apache.commons.jxpath.functions
Class ConstructorFunction

java.lang.Object
  |
  +--org.apache.commons.jxpath.functions.ConstructorFunction
All Implemented Interfaces:
Function

public class ConstructorFunction
extends java.lang.Object
implements Function

An extension function that creates an instance using a constructor.

Version:
$Revision: 1.9 $ $Date: 2003/03/11 00:59:16 $
Author:
Dmitri Plotnikov

Constructor Summary
ConstructorFunction(java.lang.reflect.Constructor constructor)
           
 
Method Summary
 java.lang.Object invoke(ExpressionContext context, java.lang.Object[] parameters)
          Converts parameters to suitable types and invokes the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstructorFunction

public ConstructorFunction(java.lang.reflect.Constructor constructor)
Method Detail

invoke

public java.lang.Object invoke(ExpressionContext context,
                               java.lang.Object[] parameters)
Converts parameters to suitable types and invokes the constructor.
Specified by:
invoke in interface Function
Following copied from interface: org.apache.commons.jxpath.Function
Parameters:
context - can be used to acquire the context in which the function is being evaluted.


Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.