java.lang.reflect
Class Field
java.lang.Object
java.lang.reflect.AccessibleObject
java.lang.reflect.Field
- All Implemented Interfaces:
- Member
- public final class Field
- extends AccessibleObject
- implements Member
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
Field
Field(Class,
String,
Class,
int,
int)
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 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.