java.lang.reflect
Class Field
java.lang.Object
java.lang.reflect.AccessibleObject
java.lang.reflect.Field
- All Implemented Interfaces:
- AnnotatedElement, Member
- public final class Field
- extends AccessibleObject
- implements Member
|
Method Summary |
private sun.reflect.FieldAccessor |
acquireFieldAccessor(boolean)
|
(package private) Field |
copy()
|
private Map |
declaredAnnotations()
|
private void |
doSecurityCheck(Object)
|
boolean |
equals(Object)
|
Object |
get(Object)
|
Annotation |
getAnnotation(Class)
|
boolean |
getBoolean(Object)
|
byte |
getByte(Object)
|
char |
getChar(Object)
|
Annotation[] |
getDeclaredAnnotations()
|
Class |
getDeclaringClass()
|
double |
getDouble(Object)
|
private sun.reflect.generics.factory.GenericsFactory |
getFactory()
|
private sun.reflect.FieldAccessor |
getFieldAccessor(boolean)
|
private sun.reflect.FieldAccessor |
getFieldAccessor(Object)
|
float |
getFloat(Object)
|
private sun.reflect.generics.repository.FieldRepository |
getGenericInfo()
|
private String |
getGenericSignature()
|
Type |
getGenericType()
|
int |
getInt(Object)
|
long |
getLong(Object)
|
int |
getModifiers()
|
String |
getName()
|
short |
getShort(Object)
|
Class |
getType()
|
(package private) static String |
getTypeName(Class)
|
int |
hashCode()
|
boolean |
isEnumConstant()
|
boolean |
isSynthetic()
|
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,
boolean)
|
void |
setFloat(Object,
float)
|
void |
setInt(Object,
int)
|
void |
setLong(Object,
long)
|
void |
setShort(Object,
short)
|
String |
toGenericString()
|
String |
toString()
|
slot
private int slot
modifiers
private int modifiers
EMPTY_ANNOTATION_ARRAY
private static final Annotation[] EMPTY_ANNOTATION_ARRAY
name
private String name
declaredAnnotations
private transient Map declaredAnnotations
securityCheckCache
private Class securityCheckCache
type
private Class type
signature
private transient String signature
clazz
private Class clazz
overrideFieldAccessor
private sun.reflect.FieldAccessor overrideFieldAccessor
genericInfo
private transient sun.reflect.generics.repository.FieldRepository genericInfo
annotations
private byte[] annotations
securityCheckTargetClassCache
private Class securityCheckTargetClassCache
root
private Field root
fieldAccessor
private sun.reflect.FieldAccessor fieldAccessor
Field
Field(Class,
String,
Class,
int,
int,
String,
byte[])
getGenericSignature
private String getGenericSignature()
getFactory
private sun.reflect.generics.factory.GenericsFactory getFactory()
getGenericInfo
private sun.reflect.generics.repository.FieldRepository getGenericInfo()
copy
Field copy()
getDeclaringClass
public Class getDeclaringClass()
- Specified by:
getDeclaringClass in interface Member
getName
public String getName()
- Specified by:
getName in interface Member
getModifiers
public int getModifiers()
- Specified by:
getModifiers in interface Member
isEnumConstant
public boolean isEnumConstant()
isSynthetic
public boolean isSynthetic()
- Specified by:
isSynthetic in interface Member
getType
public Class getType()
getGenericType
public Type getGenericType()
equals
public boolean equals(Object)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object
toGenericString
public String toGenericString()
get
public Object get(Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
getBoolean
public boolean getBoolean(Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
getByte
public byte getByte(Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
getChar
public char getChar(Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
getShort
public short getShort(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
getFloat
public float getFloat(Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
getDouble
public double getDouble(Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
set
public void set(Object,
Object)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
setBoolean
public void setBoolean(Object,
boolean)
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
setShort
public void setShort(Object,
short)
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
setFloat
public void setFloat(Object,
float)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
setDouble
public void setDouble(Object,
double)
throws IllegalArgumentException,
IllegalAccessException
- Throws:
IllegalArgumentException
IllegalAccessException
getFieldAccessor
private sun.reflect.FieldAccessor getFieldAccessor(Object)
throws IllegalAccessException
- Throws:
IllegalAccessException
acquireFieldAccessor
private sun.reflect.FieldAccessor acquireFieldAccessor(boolean)
getFieldAccessor
private sun.reflect.FieldAccessor getFieldAccessor(boolean)
setFieldAccessor
private void setFieldAccessor(sun.reflect.FieldAccessor,
boolean)
doSecurityCheck
private void doSecurityCheck(Object)
throws IllegalAccessException
- Throws:
IllegalAccessException
getTypeName
static String getTypeName(Class)
getAnnotation
public Annotation getAnnotation(Class)
- Specified by:
getAnnotation in interface AnnotatedElement- Overrides:
getAnnotation in class AccessibleObject
getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotations in interface AnnotatedElement- Overrides:
getDeclaredAnnotations in class AccessibleObject
declaredAnnotations
private Map declaredAnnotations()
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.