|
|||||||||
| Home >> All >> org >> apache >> bcel >> [ generic overview ] | PREV NEXT | ||||||||
Uses of Class
org.apache.bcel.generic.Type
| Uses of Type in org.apache.bcel.generic |
| Subclasses of Type in org.apache.bcel.generic | |
class |
ArrayType
Denotes array type, such as int[][] |
class |
BasicType
Denotes basic type such as int. |
class |
ObjectType
Denotes reference such as java.lang.String. |
class |
ReferenceType
Super class for object and array types. |
class |
ReturnaddressType
Returnaddress, the type JSR or JSR_W instructions push upon the stack. |
| Fields in org.apache.bcel.generic declared as Type | |
static Type[] |
Type.NO_ARGS
|
static Type |
Type.UNKNOWN
|
private Type[] |
MethodGen.arg_types
|
private Type |
LocalVariableGen.type
|
(package private) Type[] |
InstructionFactory.MethodObject.arg_types
|
(package private) Type |
InstructionFactory.MethodObject.result_type
|
protected Type |
FieldGenOrMethodGen.type
|
private Type |
ArrayType.basic_type
|
| Methods in org.apache.bcel.generic that return Type | |
Type |
TypedInstruction.getType(ConstantPoolGen cpg)
|
static Type |
Type.getType(java.lang.String signature)
Convert signature to a Type object. |
static Type |
Type.getReturnType(java.lang.String signature)
Convert return value of a method (signature) to a Type object. |
static Type[] |
Type.getArgumentTypes(java.lang.String signature)
Convert arguments of a method (signature) to an array of Type objects. |
static Type |
Type.getType(java.lang.Class cl)
Convert runtime java.lang.Class to BCEL Type object. |
static Type[] |
Type.getTypes(java.lang.Class[] classes)
Convert runtime java.lang.Class[] to BCEL Type objects. |
Type |
StackInstruction.getType(ConstantPoolGen cp)
|
Type |
SIPUSH.getType(ConstantPoolGen cp)
|
Type |
ReturnInstruction.getType()
|
Type |
ReturnInstruction.getType(ConstantPoolGen cp)
|
Type |
RET.getType(ConstantPoolGen cp)
|
Type |
NEWARRAY.getType()
|
Type |
NamedAndTyped.getType()
|
Type |
MethodGen.getReturnType()
|
Type[] |
MethodGen.getArgumentTypes()
|
Type |
MethodGen.getArgumentType(int i)
|
Type |
LocalVariableInstruction.getType(ConstantPoolGen cp)
Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned. |
Type |
LocalVariableGen.getType()
|
Type |
LoadClass.getType(ConstantPoolGen cpg)
Returns the type associated with this instruction. |
Type |
LDC2_W.getType(ConstantPoolGen cpg)
|
Type |
LDC.getType(ConstantPoolGen cpg)
|
Type |
LCONST.getType(ConstantPoolGen cp)
|
Type |
LCMP.getType(ConstantPoolGen cp)
|
Type |
JsrInstruction.getType(ConstantPoolGen cp)
|
Type |
InvokeInstruction.getType(ConstantPoolGen cpg)
|
Type |
InvokeInstruction.getReturnType(ConstantPoolGen cpg)
|
Type[] |
InvokeInstruction.getArgumentTypes(ConstantPoolGen cpg)
|
Type |
IINC.getType(ConstantPoolGen cp)
|
Type |
ICONST.getType(ConstantPoolGen cp)
|
Type |
FieldInstruction.getType(ConstantPoolGen cpg)
|
Type |
FieldInstruction.getFieldType(ConstantPoolGen cpg)
|
Type |
FieldGenOrMethodGen.getType()
|
Type |
FCONST.getType(ConstantPoolGen cp)
|
Type |
FCMPL.getType(ConstantPoolGen cp)
|
Type |
FCMPG.getType(ConstantPoolGen cp)
|
Type |
DCONST.getType(ConstantPoolGen cp)
|
Type |
DCMPL.getType(ConstantPoolGen cp)
|
Type |
DCMPG.getType(ConstantPoolGen cp)
|
Type |
CPInstruction.getType(ConstantPoolGen cpg)
|
Type |
ConversionInstruction.getType(ConstantPoolGen cp)
|
Type |
BIPUSH.getType(ConstantPoolGen cp)
|
Type |
ArrayType.getBasicType()
|
Type |
ArrayType.getElementType()
|
Type |
ArrayInstruction.getType(ConstantPoolGen cp)
|
Type |
ArithmeticInstruction.getType(ConstantPoolGen cp)
|
Type |
ACONST_NULL.getType(ConstantPoolGen cp)
|
| Methods in org.apache.bcel.generic with parameters of type Type | |
static java.lang.String |
Type.getMethodSignature(Type return_type,
Type[] arg_types)
Convert type to Java method signature, e.g. |
boolean |
ReferenceType.isCastableTo(Type t)
Return true iff this type is castable to another type t as defined in the JVM specification. |
boolean |
ReferenceType.isAssignmentCompatibleWith(Type t)
Return true iff this is assignment compatible with another type t as defined in the JVM specification; see the AASTORE definition there. |
void |
NamedAndTyped.setType(Type type)
|
LocalVariableGen |
MethodGen.addLocalVariable(java.lang.String name,
Type type,
int slot,
InstructionHandle start,
InstructionHandle end)
Adds a local variable to this method. |
LocalVariableGen |
MethodGen.addLocalVariable(java.lang.String name,
Type type,
InstructionHandle start,
InstructionHandle end)
Adds a local variable to this method and assigns an index automatically. |
void |
MethodGen.setReturnType(Type return_type)
|
void |
MethodGen.setArgumentTypes(Type[] arg_types)
|
void |
MethodGen.setArgumentType(int i,
Type type)
|
void |
LocalVariableGen.setType(Type type)
|
InvokeInstruction |
InstructionFactory.createInvoke(java.lang.String class_name,
java.lang.String name,
Type ret_type,
Type[] arg_types,
short kind)
Create an invoke instruction. |
private static boolean |
InstructionFactory.isString(Type type)
|
Instruction |
InstructionFactory.createAppend(Type type)
|
FieldInstruction |
InstructionFactory.createFieldAccess(java.lang.String class_name,
java.lang.String name,
Type type,
short kind)
Create a field instruction. |
static ReturnInstruction |
InstructionFactory.createReturn(Type type)
Create typed return |
static ArithmeticInstruction |
InstructionFactory.createBinaryOperation(java.lang.String op,
Type type)
Create binary operation for simple basic types, such as int and float. |
static LocalVariableInstruction |
InstructionFactory.createStore(Type type,
int index)
|
static LocalVariableInstruction |
InstructionFactory.createLoad(Type type,
int index)
|
static ArrayInstruction |
InstructionFactory.createArrayLoad(Type type)
|
static ArrayInstruction |
InstructionFactory.createArrayStore(Type type)
|
Instruction |
InstructionFactory.createCast(Type src_type,
Type dest_type)
Create conversion operation for two stack operands, this may be an I2C, instruction, e.g., if the operands are basic types and CHECKCAST if they are reference types. |
GETFIELD |
InstructionFactory.createGetField(java.lang.String class_name,
java.lang.String name,
Type t)
|
GETSTATIC |
InstructionFactory.createGetStatic(java.lang.String class_name,
java.lang.String name,
Type t)
|
PUTFIELD |
InstructionFactory.createPutField(java.lang.String class_name,
java.lang.String name,
Type t)
|
PUTSTATIC |
InstructionFactory.createPutStatic(java.lang.String class_name,
java.lang.String name,
Type t)
|
Instruction |
InstructionFactory.createNewArray(Type t,
short dim)
Create new array of given size and type. |
static Instruction |
InstructionFactory.createNull(Type type)
Create "null" value for reference types, 0 for basic types like int |
void |
FieldGenOrMethodGen.setType(Type type)
|
private void |
FieldGen.checkType(Type atype)
|
| Constructors in org.apache.bcel.generic with parameters of type Type | |
MethodGen(int access_flags,
Type return_type,
Type[] arg_types,
java.lang.String[] arg_names,
java.lang.String method_name,
java.lang.String class_name,
InstructionList il,
ConstantPoolGen cp)
Declare method. |
|
LocalVariableGen(int index,
java.lang.String name,
Type type,
InstructionHandle start,
InstructionHandle end)
Generate a local variable that with index `index'. |
|
InstructionFactory.MethodObject(java.lang.String c,
java.lang.String n,
Type r,
Type[] a,
int acc)
|
|
FieldGen(int access_flags,
Type type,
java.lang.String name,
ConstantPoolGen cp)
Declare a field. |
|
ArrayType(Type type,
int dimensions)
Constructor for array of given type |
|
|
|||||||||
| Home >> All >> org >> apache >> bcel >> [ generic overview ] | PREV NEXT | ||||||||