| java.lang.Object sun.reflect.AccessorGenerator
All known Subclasses: sun.reflect.MethodAccessorGenerator,
AccessorGenerator | class AccessorGenerator implements ClassFileConstants(Code) | | Shared functionality for all accessor generators
|
Method Summary | |
protected static short | add(short s1, short s2) | protected static boolean | canWidenTo(Class type, Class otherType) | protected short | ctorIndexForPrimitiveType(Class type) | protected void | emitBoxingContantPoolEntries() Constant pool entries required to be able to box/unbox primitive
types. | protected void | emitCommonConstantPoolEntries() | protected void | emitConstructor() | protected void | emitMethod(short nameIdx, int numArgs, ClassFileAssembler code, ClassFileAssembler exceptionTable, short[] checkedExceptionIndices) | protected static void | emitWideningBytecodeForPrimitiveConversion(ClassFileAssembler cb, Class fromType, Class toType) Emits the widening bytecode for the given primitive conversion
(or none if the identity conversion). | protected static String | getClassName(Class c, boolean addPrefixAndSuffixForNonPrimitiveTypes) | protected ClassFileAssembler | illegalArgumentCodeBuffer() | protected short | indexForPrimitiveType(Class type) | protected static boolean | isPrimitive(Class c) | protected boolean | isStatic() | protected static short | sub(short s1, short s2) | protected int | typeSizeInStackSlots(Class c) | protected short | unboxingMethodForPrimitiveType(Class primType) |
NUM_BOXING_CPOOL_ENTRIES | final protected short NUM_BOXING_CPOOL_ENTRIES(Code) | | |
NUM_COMMON_CPOOL_ENTRIES | final protected short NUM_COMMON_CPOOL_ENTRIES(Code) | | |
S0 | final protected static short S0(Code) | | |
S1 | final protected static short S1(Code) | | |
S2 | final protected static short S2(Code) | | |
S3 | final protected static short S3(Code) | | |
S4 | final protected static short S4(Code) | | |
S5 | final protected static short S5(Code) | | |
S6 | final protected static short S6(Code) | | |
booleanCtorIdx | protected short booleanCtorIdx(Code) | | |
booleanIdx | protected short booleanIdx(Code) | | |
booleanUnboxIdx | protected short booleanUnboxIdx(Code) | | |
byteCtorIdx | protected short byteCtorIdx(Code) | | |
byteIdx | protected short byteIdx(Code) | | |
byteUnboxIdx | protected short byteUnboxIdx(Code) | | |
characterCtorIdx | protected short characterCtorIdx(Code) | | |
characterIdx | protected short characterIdx(Code) | | |
characterUnboxIdx | protected short characterUnboxIdx(Code) | | |
classCastClass | protected short classCastClass(Code) | | |
codeIdx | protected short codeIdx(Code) | | |
doubleCtorIdx | protected short doubleCtorIdx(Code) | | |
doubleIdx | protected short doubleIdx(Code) | | |
doubleUnboxIdx | protected short doubleUnboxIdx(Code) | | |
exceptionsIdx | protected short exceptionsIdx(Code) | | |
floatCtorIdx | protected short floatCtorIdx(Code) | | |
floatIdx | protected short floatIdx(Code) | | |
floatUnboxIdx | protected short floatUnboxIdx(Code) | | |
illegalArgumentClass | protected short illegalArgumentClass(Code) | | |
illegalArgumentCtorIdx | protected short illegalArgumentCtorIdx(Code) | | |
illegalArgumentStringCtorIdx | protected short illegalArgumentStringCtorIdx(Code) | | |
initIdx | protected short initIdx(Code) | | |
initNameAndTypeIdx | protected short initNameAndTypeIdx(Code) | | |
initStringNameAndTypeIdx | protected short initStringNameAndTypeIdx(Code) | | |
integerCtorIdx | protected short integerCtorIdx(Code) | | |
integerIdx | protected short integerIdx(Code) | | |
integerUnboxIdx | protected short integerUnboxIdx(Code) | | |
invocationTargetClass | protected short invocationTargetClass(Code) | | |
invocationTargetCtorIdx | protected short invocationTargetCtorIdx(Code) | | |
longCtorIdx | protected short longCtorIdx(Code) | | |
longIdx | protected short longIdx(Code) | | |
longUnboxIdx | protected short longUnboxIdx(Code) | | |
modifiers | protected int modifiers(Code) | | |
nullPointerClass | protected short nullPointerClass(Code) | | |
nullPointerCtorIdx | protected short nullPointerCtorIdx(Code) | | |
objectClass | protected short objectClass(Code) | | |
primitiveTypes | final protected static Class[] primitiveTypes(Code) | | |
shortCtorIdx | protected short shortCtorIdx(Code) | | |
shortIdx | protected short shortIdx(Code) | | |
shortUnboxIdx | protected short shortUnboxIdx(Code) | | |
superClass | protected short superClass(Code) | | |
superCtorIdx | protected short superCtorIdx(Code) | | |
targetClass | protected short targetClass(Code) | | |
thisClass | protected short thisClass(Code) | | |
throwableClass | protected short throwableClass(Code) | | |
toStringIdx | protected short toStringIdx(Code) | | |
unsafe | final static Unsafe unsafe(Code) | | |
add | protected static short add(short s1, short s2)(Code) | | |
canWidenTo | protected static boolean canWidenTo(Class type, Class otherType)(Code) | | Returns true for widening or identity conversions for primitive
types only
|
ctorIndexForPrimitiveType | protected short ctorIndexForPrimitiveType(Class type)(Code) | | |
emitBoxingContantPoolEntries | protected void emitBoxingContantPoolEntries()(Code) | | Constant pool entries required to be able to box/unbox primitive
types. Note that we don't emit these if we don't need them.
|
emitCommonConstantPoolEntries | protected void emitCommonConstantPoolEntries()(Code) | | |
emitConstructor | protected void emitConstructor()(Code) | | |
emitWideningBytecodeForPrimitiveConversion | protected static void emitWideningBytecodeForPrimitiveConversion(ClassFileAssembler cb, Class fromType, Class toType)(Code) | | Emits the widening bytecode for the given primitive conversion
(or none if the identity conversion). Requires that a primitive
conversion exists; i.e., canWidenTo must have already been
called and returned true.
|
getClassName | protected static String getClassName(Class c, boolean addPrefixAndSuffixForNonPrimitiveTypes)(Code) | | Returns class name in "internal" form (i.e., '/' separators
instead of '.')
|
indexForPrimitiveType | protected short indexForPrimitiveType(Class type)(Code) | | |
isPrimitive | protected static boolean isPrimitive(Class c)(Code) | | We don't consider "Void" to be a primitive type
|
isStatic | protected boolean isStatic()(Code) | | |
sub | protected static short sub(short s1, short s2)(Code) | | |
typeSizeInStackSlots | protected int typeSizeInStackSlots(Class c)(Code) | | |
unboxingMethodForPrimitiveType | protected short unboxingMethodForPrimitiveType(Class primType)(Code) | | |
|
|