Class SerializableField
java.lang.Object
nl.tudelft.simulation.language.reflection.SerializableField
- All Implemented Interfaces:
Serializable
A SerializableField.
Copyright (c) 2002-2024 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.
- Since:
- 1.5
- Author:
- Peter Jacobs
- See Also:
-
Constructor Summary
ConstructorDescriptionSerializableField
(Class<?> clazz, String fieldName) constructs a new SerializableField.SerializableField
(Field field) constructs a new SerializableField. -
Method Summary
-
Constructor Details
-
SerializableField
constructs a new SerializableField.- Parameters:
field
- Field; The field
-
SerializableField
constructs a new SerializableField.- Parameters:
clazz
- Class<?>; the clazz this field is instance offieldName
- String; the name of the field- Throws:
NoSuchFieldException
- whenever the field is not defined in clazz
-
-
Method Details
-
deSerialize
deserializes the field.- Returns:
- the Field
-