Class SerializableConstructor
- java.lang.Object
-
- nl.tudelft.simulation.language.reflection.SerializableConstructor
-
- All Implemented Interfaces:
Serializable
public class SerializableConstructor extends Object implements Serializable
A SerializableConstructor.Copyright (c) 2002-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializableConstructor(Class<?> clazz, Class<?>... parameterTypes)constructs a new SerializableConstructor.SerializableConstructor(Constructor<?> constructor)constructs a new SerializableConstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Constructor<?>deSerialize()deserializes the field.
-
-
-
Constructor Detail
-
SerializableConstructor
public SerializableConstructor(Constructor<?> constructor)
constructs a new SerializableConstructor.- Parameters:
constructor- Constructor<?>; The constructor
-
SerializableConstructor
public SerializableConstructor(Class<?> clazz, Class<?>... parameterTypes) throws NoSuchMethodException
constructs a new SerializableConstructor.- Parameters:
clazz- Class<?>; the clazz this field is instance ofparameterTypes- Class<?>...; the parameterTypes of the constructor- Throws:
NoSuchMethodException- whenever the method is not defined in clazz
-
-
Method Detail
-
deSerialize
public Constructor<?> deSerialize()
deserializes the field.- Returns:
- the Constructor
-
-