org.apache.commons.jxpath.functions
Class ConstructorFunction
java.lang.Object
org.apache.commons.jxpath.functions.ConstructorFunction
- All Implemented Interfaces:
- Function
public class ConstructorFunction
- extends Object
- implements Function
An extension function that creates an instance using a constructor.
- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructorFunction
public ConstructorFunction(Constructor constructor)
- Create a new ConstructorFunction.
- Parameters:
constructor
- the constructor to call.
invoke
public Object invoke(ExpressionContext context,
Object[] parameters)
- Converts parameters to suitable types and invokes the constructor.
- Specified by:
invoke
in interface Function
- Parameters:
context
- evaluation contextparameters
- constructor args
- Returns:
- new instance
Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.