nl.tudelft.simulation.language.reflection
Class SerializableField

java.lang.Object
  extended bynl.tudelft.simulation.language.reflection.SerializableField
All Implemented Interfaces:
java.io.Serializable

public class SerializableField
extends java.lang.Object
implements java.io.Serializable

A SerializableField
(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.3
Version:
1.3 March 24, 2004
Author:
Peter Jacobs
See Also:
Serialized Form

Constructor Summary
SerializableField(java.lang.Class clazz, java.lang.String fieldName)
          constructs a new SerializableField
SerializableField(java.lang.reflect.Field field)
          constructs a new SerializableField
 
Method Summary
 java.lang.reflect.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(java.lang.reflect.Field field)
constructs a new SerializableField

Parameters:
field - The field

SerializableField

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

Parameters:
clazz - the clazz this field is instance of
fieldName - the name of the field
Throws:
java.lang.NoSuchFieldException - whenever the field is not defined in clazz
Method Detail

deSerialize

public java.lang.reflect.Field deSerialize()
deserializes the field

Returns:
the Field


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