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-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 Details

    • 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 of
      fieldName - String; the name of the field
      Throws:
      NoSuchFieldException - whenever the field is not defined in clazz
  • Method Details

    • deSerialize

      public Field deSerialize()
      deserializes the field.
      Returns:
      the Field