com.plumtree.openfoundation.reflect
Class XPConstructor

java.lang.Object
  extended bycom.plumtree.openfoundation.reflect.XPConstructor

public class XPConstructor
extends java.lang.Object

XPConstructor corresponds to java.lang.reflect.Constructor class. It provides information and access about a single constructor for a class.

Author:
djc

Constructor Summary
XPConstructor(java.lang.reflect.Constructor constructor)
          Construct an object from a native Constructor.
 
Method Summary
 java.lang.String GetName()
          Return the class name of this constructor.
 XPType[] GetParameterTypes()
          Returns an array of XPType objects that represent the formal parameter types, in declaration order, of the constructor represented by this XPConstructor object.
 java.lang.reflect.Constructor GetUnderlyingObject()
          Return the underlying Constructor object.
 java.lang.Object Invoke(java.lang.Object[] parameters)
          Uses the constructor represented by this XPConstructor object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPConstructor

public XPConstructor(java.lang.reflect.Constructor constructor)
Construct an object from a native Constructor.

Parameters:
constructor - a native Constructor object
Method Detail

GetName

public java.lang.String GetName()
Return the class name of this constructor.

Returns:
the simple name of the underlying member

GetParameterTypes

public XPType[] GetParameterTypes()
Returns an array of XPType objects that represent the formal parameter types, in declaration order, of the constructor represented by this XPConstructor object.

Returns:
the parameter types for the constructor this object represents

Invoke

public java.lang.Object Invoke(java.lang.Object[] parameters)
Uses the constructor represented by this XPConstructor object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.

Parameters:
parameters - - array of objects to be passed as arguments to the constructor call
Returns:
a new object created by calling the constructor this object represents

GetUnderlyingObject

public java.lang.reflect.Constructor GetUnderlyingObject()
Return the underlying Constructor object.

Returns:
a Constructor object


Copyright 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.