nl.tudelft.simulation.language.reflection
Class SerializableField

java.lang.Object
  extended by nl.tudelft.simulation.language.reflection.SerializableField
All Implemented Interfaces:
Serializable

public class SerializableField
extends Object
implements Serializable

A SerializableField.

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.

See for project information www.simulation.tudelft.nl/language
License of use: Lesser General Public License (LGPL) , no warranty

Since:
1.3
Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:25:54 $
Author:
Peter Jacobs
See Also:
Serialized Form

Constructor Summary
SerializableField(Class clazz, String fieldName)
          constructs a new SerializableField
SerializableField(Field field)
          constructs a new SerializableField
 
Method Summary
 Field deSerialize()
          deserializes the field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableField

public SerializableField(Field field)
constructs a new SerializableField

Parameters:
field - The field

SerializableField

public SerializableField(Class clazz,
                         String fieldName)
                  throws NoSuchFieldException
constructs a new SerializableField

Parameters:
clazz - the clazz this field is instance of
fieldName - 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


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.