Class SerializableField
- java.lang.Object
-
- nl.tudelft.simulation.language.reflection.SerializableField
-
- All Implemented Interfaces:
Serializable
public class SerializableField extends Object implements Serializable
A SerializableField.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.
- Since:
- 1.5
- Author:
- Peter Jacobs
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SerializableField(Class<?> clazz, String fieldName)constructs a new SerializableField.SerializableField(Field field)constructs a new SerializableField.
-
-
-
Constructor Detail
-
SerializableField
public SerializableField(Field field)
constructs a new SerializableField.- Parameters:
field- Field; The field
-
SerializableField
public SerializableField(Class<?> clazz, String fieldName) throws NoSuchFieldException
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 Detail
-
deSerialize
public Field deSerialize()
deserializes the field.- Returns:
- the Field
-
-