Package javassist
Class CodeConverter.DefaultArrayAccessReplacementMethodNames
java.lang.Object
javassist.CodeConverter.DefaultArrayAccessReplacementMethodNames
- All Implemented Interfaces:
CodeConverter.ArrayAccessReplacementMethodNames
- Enclosing class:
CodeConverter
public static class CodeConverter.DefaultArrayAccessReplacementMethodNames
extends Object
implements CodeConverter.ArrayAccessReplacementMethodNames
Default implementation of the
ArrayAccessReplacementMethodNames
interface giving default values for method names to be used for replacing
accesses to array elements.- Version:
- $Revision: 1.16 $
- Author:
- Kabir Khan
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns "arrayReadByteOrBoolean" as the name of the static method with the signature (Ljava/lang/Object;I)B to replace reading from a byte[].Returns "arrayWriteByteOrBoolean" as the name of the static method with the signature (Ljava/lang/Object;IB)V to replace writing to a byte[].charRead()
Returns "arrayReadChar" as the name of the static method with the signature (Ljava/lang/Object;I)C to replace reading from a char[].Returns "arrayWriteChar" as the name of the static method with the signature (Ljava/lang/Object;IC)V to replace writing to a byte[].Returns "arrayReadDouble" as the name of the static method with the signature (Ljava/lang/Object;I)D to replace reading from a double[].Returns "arrayWriteDouble" as the name of the static method with the signature (Ljava/lang/Object;ID)V to replace writing to a double[].Returns "arrayReadFloat" as the name of the static method with the signature (Ljava/lang/Object;I)F to replace reading from a float[].Returns "arrayWriteFloat" as the name of the static method with the signature (Ljava/lang/Object;IF)V to replace writing to a float[].intRead()
Returns "arrayReadInt" as the name of the static method with the signature (Ljava/lang/Object;I)I to replace reading from a int[].intWrite()
Returns "arrayWriteInt" as the name of the static method with the signature (Ljava/lang/Object;II)V to replace writing to a int[].longRead()
Returns "arrayReadLong" as the name of the static method with the signature (Ljava/lang/Object;I)J to replace reading from a long[].Returns "arrayWriteLong" as the name of the static method with the signature (Ljava/lang/Object;IJ)V to replace writing to a long[].Returns "arrayReadObject" as the name of the static method with the signature (Ljava/lang/Object;I)Ljava/lang/Object; to replace reading from a Object[] (or any subclass of object).Returns "arrayWriteObject" as the name of the static method with the signature (Ljava/lang/Object;ILjava/lang/Object;)V to replace writing to a Object[] (or any subclass of object).Returns "arrayReadShort" as the name of the static method with the signature (Ljava/lang/Object;I)S to replace reading from a short[].Returns "arrayWriteShort" as the name of the static method with the signature (Ljava/lang/Object;IS)V to replace writing to a short[].
-
Constructor Details
-
DefaultArrayAccessReplacementMethodNames
public DefaultArrayAccessReplacementMethodNames()
-
-
Method Details
-
byteOrBooleanRead
Returns "arrayReadByteOrBoolean" as the name of the static method with the signature (Ljava/lang/Object;I)B to replace reading from a byte[].- Specified by:
byteOrBooleanRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
byteOrBooleanWrite
Returns "arrayWriteByteOrBoolean" as the name of the static method with the signature (Ljava/lang/Object;IB)V to replace writing to a byte[].- Specified by:
byteOrBooleanWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
charRead
Returns "arrayReadChar" as the name of the static method with the signature (Ljava/lang/Object;I)C to replace reading from a char[].- Specified by:
charRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
- Returns:
- the name of a static method with the signature
(Ljava/lang/Object;I)C
to replace reading from a char[].
-
charWrite
Returns "arrayWriteChar" as the name of the static method with the signature (Ljava/lang/Object;IC)V to replace writing to a byte[].- Specified by:
charWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
doubleRead
Returns "arrayReadDouble" as the name of the static method with the signature (Ljava/lang/Object;I)D to replace reading from a double[].- Specified by:
doubleRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
doubleWrite
Returns "arrayWriteDouble" as the name of the static method with the signature (Ljava/lang/Object;ID)V to replace writing to a double[].- Specified by:
doubleWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
floatRead
Returns "arrayReadFloat" as the name of the static method with the signature (Ljava/lang/Object;I)F to replace reading from a float[].- Specified by:
floatRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
floatWrite
Returns "arrayWriteFloat" as the name of the static method with the signature (Ljava/lang/Object;IF)V to replace writing to a float[].- Specified by:
floatWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
intRead
Returns "arrayReadInt" as the name of the static method with the signature (Ljava/lang/Object;I)I to replace reading from a int[].- Specified by:
intRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
intWrite
Returns "arrayWriteInt" as the name of the static method with the signature (Ljava/lang/Object;II)V to replace writing to a int[].- Specified by:
intWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
longRead
Returns "arrayReadLong" as the name of the static method with the signature (Ljava/lang/Object;I)J to replace reading from a long[].- Specified by:
longRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
longWrite
Returns "arrayWriteLong" as the name of the static method with the signature (Ljava/lang/Object;IJ)V to replace writing to a long[].- Specified by:
longWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
objectRead
Returns "arrayReadObject" as the name of the static method with the signature (Ljava/lang/Object;I)Ljava/lang/Object; to replace reading from a Object[] (or any subclass of object).- Specified by:
objectRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
objectWrite
Returns "arrayWriteObject" as the name of the static method with the signature (Ljava/lang/Object;ILjava/lang/Object;)V to replace writing to a Object[] (or any subclass of object).- Specified by:
objectWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
shortRead
Returns "arrayReadShort" as the name of the static method with the signature (Ljava/lang/Object;I)S to replace reading from a short[].- Specified by:
shortRead
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-
shortWrite
Returns "arrayWriteShort" as the name of the static method with the signature (Ljava/lang/Object;IS)V to replace writing to a short[].- Specified by:
shortWrite
in interfaceCodeConverter.ArrayAccessReplacementMethodNames
-