Home » openjdk-7 » sun » reflect » [javadoc | source]
sun.reflect
abstract class: UnsafeFieldAccessorImpl [javadoc | source]
java.lang.Object
   sun.reflect.MagicAccessorImpl
      sun.reflect.FieldAccessorImpl
         sun.reflect.UnsafeFieldAccessorImpl

All Implemented Interfaces:
    FieldAccessor

Base class for sun.misc.Unsafe-based FieldAccessors. The observation is that there are only nine types of fields from the standpoint of reflection code: the eight primitive types and Object. Using class Unsafe instead of generated bytecodes saves memory and loading time for the dynamically-generated FieldAccessors.
Field Summary
static final  Unsafe unsafe     
protected final  Field field     
protected final  int fieldOffset     
protected final  boolean isFinal     
Constructor:
 UnsafeFieldAccessorImpl(Field field) 
Method from sun.reflect.UnsafeFieldAccessorImpl Summary:
ensureObj,   getSetMessage,   newGetBooleanIllegalArgumentException,   newGetByteIllegalArgumentException,   newGetCharIllegalArgumentException,   newGetDoubleIllegalArgumentException,   newGetFloatIllegalArgumentException,   newGetIllegalArgumentException,   newGetIntIllegalArgumentException,   newGetLongIllegalArgumentException,   newGetShortIllegalArgumentException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwFinalFieldIllegalAccessException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException,   throwSetIllegalArgumentException
Methods from sun.reflect.FieldAccessorImpl:
get,   getBoolean,   getByte,   getChar,   getDouble,   getFloat,   getInt,   getLong,   getShort,   set,   setBoolean,   setByte,   setChar,   setDouble,   setFloat,   setInt,   setLong,   setShort
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.reflect.UnsafeFieldAccessorImpl Detail:
 protected  void ensureObj(Object o) 
 protected String getSetMessage(String attemptedType,
    String attemptedValue) 
 protected IllegalArgumentException newGetBooleanIllegalArgumentException() 
 protected IllegalArgumentException newGetByteIllegalArgumentException() 
 protected IllegalArgumentException newGetCharIllegalArgumentException() 
 protected IllegalArgumentException newGetDoubleIllegalArgumentException() 
 protected IllegalArgumentException newGetFloatIllegalArgumentException() 
 protected IllegalArgumentException newGetIllegalArgumentException(String type) 
 protected IllegalArgumentException newGetIntIllegalArgumentException() 
 protected IllegalArgumentException newGetLongIllegalArgumentException() 
 protected IllegalArgumentException newGetShortIllegalArgumentException() 
 protected  void throwFinalFieldIllegalAccessException(Object o) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(boolean z) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(char b) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(byte b) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(short b) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(int i) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(long i) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(float f) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(double f) throws IllegalAccessException 
 protected  void throwFinalFieldIllegalAccessException(String attemptedType,
    String attemptedValue) throws IllegalAccessException 
 protected  void throwSetIllegalArgumentException(Object o) 
 protected  void throwSetIllegalArgumentException(boolean b) 
 protected  void throwSetIllegalArgumentException(byte b) 
 protected  void throwSetIllegalArgumentException(char c) 
 protected  void throwSetIllegalArgumentException(short s) 
 protected  void throwSetIllegalArgumentException(int i) 
 protected  void throwSetIllegalArgumentException(long l) 
 protected  void throwSetIllegalArgumentException(float f) 
 protected  void throwSetIllegalArgumentException(double d) 
 protected  void throwSetIllegalArgumentException(String attemptedType,
    String attemptedValue)