Class SerializableMethod
- java.lang.Object
-
- nl.tudelft.simulation.language.reflection.SerializableMethod
-
- All Implemented Interfaces:
Serializable
public class SerializableMethod extends Object implements Serializable
A SerializableMethod.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 SerializableMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes)constructs a new SerializableMethod.SerializableMethod(Method method)constructs a new SerializableMethod.
-
-
-
Constructor Detail
-
SerializableMethod
public SerializableMethod(Method method)
constructs a new SerializableMethod.- Parameters:
method- Method; the method
-
SerializableMethod
public SerializableMethod(Class<?> clazz, String methodName, Class<?>... parameterTypes) throws NoSuchMethodException
constructs a new SerializableMethod.- Parameters:
clazz- Class<?>; the clazz this field is instance ofmethodName- String; the name of the methodparameterTypes- Class<?>..; The parameterTypes of the method- Throws:
NoSuchMethodException- whenever the method is not defined in clazz
-
-
Method Detail
-
deSerialize
public Method deSerialize()
deserializes the field.- Returns:
- the Field
-
-