JML

java.lang.reflect
Class Field

java.lang.Object
  extended byjava.lang.reflect.AccessibleObject
      extended byjava.lang.reflect.Field
All Implemented Interfaces:
Member

public final class Field
extends AccessibleObject
implements Member


Field Summary
private  Class clazz
           
private  sun.reflect.FieldAccessor fieldAccessor
           
private  int modifiers
           
private  String name
           
private  Field root
           
private  Class securityCheckTargetClassCache
           
private  int slot
           
private  Class type
           
 
Fields inherited from class java.lang.reflect.AccessibleObject
override, reflectionFactory, securityCheckCache
 
Fields inherited from interface java.lang.reflect.Member
DECLARED, PUBLIC
 
Constructor Summary
(package private) Field(Class, String, Class, int, int)
           
 
Method Summary
private  void acquireFieldAccessor()
           
(package private)  Field copy()
           
private  void doSecurityCheck(Object)
           
 boolean equals(Object)
           
 Object get(Object)
           
 boolean getBoolean(Object)
           
 byte getByte(Object)
           
 char getChar(Object)
           
 Class getDeclaringClass()
           
 double getDouble(Object)
           
private  sun.reflect.FieldAccessor getFieldAccessor()
           
private  sun.reflect.FieldAccessor getFieldAccessor(Object)
           
 float getFloat(Object)
           
 int getInt(Object)
           
 long getLong(Object)
           
 int getModifiers()
           
 String getName()
           
 short getShort(Object)
           
 Class getType()
           
(package private) static String getTypeName(Class)
           
 int hashCode()
           
 void set(Object, Object)
           
 void setBoolean(Object, boolean)
           
 void setByte(Object, byte)
           
 void setChar(Object, char)
           
 void setDouble(Object, double)
           
private  void setFieldAccessor(sun.reflect.FieldAccessor)
           
 void setFloat(Object, float)
           
 void setInt(Object, int)
           
 void setLong(Object, long)
           
 void setShort(Object, short)
           
 String toString()
           
 
Methods inherited from class java.lang.reflect.AccessibleObject
isAccessible, setAccessible, setAccessible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fieldAccessor

private volatile sun.reflect.FieldAccessor fieldAccessor

root

private Field root

modifiers

private int modifiers

name

private String name

clazz

private Class clazz

type

private Class type

securityCheckTargetClassCache

private volatile Class securityCheckTargetClassCache

slot

private int slot
Constructor Detail

Field

Field(Class,
      String,
      Class,
      int,
      int)
Method Detail

getModifiers

public int getModifiers()
Specified by:
getModifiers in interface Member

hashCode

public int hashCode()
Overrides:
hashCode in class Object

acquireFieldAccessor

private void acquireFieldAccessor()

getDeclaringClass

public Class getDeclaringClass()
Specified by:
getDeclaringClass in interface Member

getType

public Class getType()

getByte

public byte getByte(Object)
             throws IllegalArgumentException,
                    IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getChar

public char getChar(Object)
             throws IllegalArgumentException,
                    IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getDouble

public double getDouble(Object)
                 throws IllegalArgumentException,
                        IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getFloat

public float getFloat(Object)
               throws IllegalArgumentException,
                      IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getInt

public int getInt(Object)
           throws IllegalArgumentException,
                  IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getLong

public long getLong(Object)
             throws IllegalArgumentException,
                    IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getShort

public short getShort(Object)
               throws IllegalArgumentException,
                      IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

doSecurityCheck

private void doSecurityCheck(Object)
                      throws IllegalAccessException
Throws:
IllegalAccessException

equals

public boolean equals(Object)
Overrides:
equals in class Object

getBoolean

public boolean getBoolean(Object)
                   throws IllegalArgumentException,
                          IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setByte

public void setByte(Object,
                    byte)
             throws IllegalArgumentException,
                    IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setChar

public void setChar(Object,
                    char)
             throws IllegalArgumentException,
                    IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setDouble

public void setDouble(Object,
                      double)
               throws IllegalArgumentException,
                      IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setFloat

public void setFloat(Object,
                     float)
              throws IllegalArgumentException,
                     IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setInt

public void setInt(Object,
                   int)
            throws IllegalArgumentException,
                   IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setLong

public void setLong(Object,
                    long)
             throws IllegalArgumentException,
                    IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setShort

public void setShort(Object,
                     short)
              throws IllegalArgumentException,
                     IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

setBoolean

public void setBoolean(Object,
                       boolean)
                throws IllegalArgumentException,
                       IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getName

public String getName()
Specified by:
getName in interface Member

toString

public String toString()
Overrides:
toString in class Object

copy

Field copy()

getFieldAccessor

private sun.reflect.FieldAccessor getFieldAccessor()

setFieldAccessor

private void setFieldAccessor(sun.reflect.FieldAccessor)

get

public Object get(Object)
           throws IllegalArgumentException,
                  IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

set

public void set(Object,
                Object)
         throws IllegalArgumentException,
                IllegalAccessException
Throws:
IllegalArgumentException
IllegalAccessException

getTypeName

static String getTypeName(Class)

getFieldAccessor

private sun.reflect.FieldAccessor getFieldAccessor(Object)
                                            throws IllegalAccessException
Throws:
IllegalAccessException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.