nl.tudelft.simulation.language.reflection
Class SerializableConstructor

java.lang.Object
  extended by nl.tudelft.simulation.language.reflection.SerializableConstructor
All Implemented Interfaces:
java.io.Serializable

public class SerializableConstructor
extends java.lang.Object
implements java.io.Serializable

A SerializableConstructor.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.

See for project information www.simulation.tudelft.nl/language
License of use: Lesser General Public License (LGPL) , no warranty

Since:
1.5
Version:
$Revision: 1.7 $ $Date: 2005/07/04 12:21:23 $
Author:
Peter Jacobs
See Also:
Serialized Form

Constructor Summary
SerializableConstructor(java.lang.Class<?> clazz, java.lang.Class[] parameterTypes)
          constructs a new SerializableConstructor
SerializableConstructor(java.lang.reflect.Constructor<?> constructor)
          constructs a new SerializableConstructor
 
Method Summary
 java.lang.reflect.Constructor<?> deSerialize()
          deserializes the field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableConstructor

public SerializableConstructor(java.lang.reflect.Constructor<?> constructor)
constructs a new SerializableConstructor

Parameters:
constructor - The constructor

SerializableConstructor

public SerializableConstructor(java.lang.Class<?> clazz,
                               java.lang.Class[] parameterTypes)
                        throws java.lang.NoSuchMethodException
constructs a new SerializableConstructor

Parameters:
clazz - the clazz this field is instance of
parameterTypes - the parameterTypes of the constructor
Throws:
java.lang.NoSuchMethodException - whenever the method is not defined in clazz
Method Detail

deSerialize

public java.lang.reflect.Constructor<?> deSerialize()
deserializes the field

Returns:
the Constructor


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.