net.sf.saffron.core
Interface SaffronField

All Known Implementing Classes:
SaffronTypeFactoryImpl.FieldImpl

public interface SaffronField

The definition of a field in a SaffronType.

Since:
May 29, 2003
Version:
$Id: //open/saffron/src/net/sf/saffron/core/SaffronField.java#2 $
Author:
jhyde

Method Summary
 Object get(Object o)
          Retrieves the value of this field in an instance of this type.
 int getIndex()
          Returns the index of this field within its record type.
 String getName()
          Returns the name of this field.
 SaffronType getType()
          Returns the type of this field.
 void set(Object o, Object value)
          Sets the value of this field in an instance of the type.
 

Method Detail

getName

public String getName()
Returns the name of this field. The name is unique within the type.


getIndex

public int getIndex()
Returns the index of this field within its record type.


getType

public SaffronType getType()
Returns the type of this field.


get

public Object get(Object o)
           throws IllegalAccessException
Retrieves the value of this field in an instance of this type.

IllegalAccessException

set

public void set(Object o,
                Object value)
         throws IllegalAccessException
Sets the value of this field in an instance of the type.

IllegalAccessException

SourceForge.net_Logo