Uses of Class org.apache.bcel.generic.Type

Uses in package org.apache.bcel.generic

Classes derived from org.apache.bcel.generic.Type

class
Denotes array type, such as int[][]
class
Denotes basic type such as int.
class
Denotes reference such as java.lang.String.
class
Super class for object and array types.
class
Returnaddress, the type JSR or JSR_W instructions push upon the stack.

Constructors with parameter type org.apache.bcel.generic.Type

ArrayType.ArrayType(Type type, int dimensions)
Constructor for array of given type
FieldGen.FieldGen(int access_flags, Type type, String name, ConstantPoolGen cp)
Declare a field.
LocalVariableGen.LocalVariableGen(int index, String name, Type type, InstructionHandle start, InstructionHandle end)
Generate a local variable that with index `index'.
MethodGen.MethodGen(int access_flags, Type return_type, Type[] arg_types, String[] arg_names, String method_name, String class_name, InstructionList il, ConstantPoolGen cp)
Declare method.

Fields of type org.apache.bcel.generic.Type

Type[]
Type
Type

Methods with parameter type org.apache.bcel.generic.Type

LocalVariableGen
MethodGen.addLocalVariable(String name, Type type, int slot, InstructionHandle start, InstructionHandle end)
Adds a local variable to this method.
LocalVariableGen
Adds a local variable to this method and assigns an index automatically.
Instruction
ArrayInstruction
ArrayInstruction
ArithmeticInstruction
Create binary operation for simple basic types, such as int and float.
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.
FieldInstruction
InstructionFactory.createFieldAccess(String class_name, String name, Type type, short kind)
Create a field instruction.
GETFIELD
InstructionFactory.createGetField(String class_name, String name, Type t)
GETSTATIC
InstructionFactory.createGetStatic(String class_name, String name, Type t)
InvokeInstruction
InstructionFactory.createInvoke(String class_name, String name, Type ret_type, Type[] arg_types, short kind)
Create an invoke instruction.
LocalVariableInstruction
Instruction
Create new array of given size and type.
Instruction
Create "null" value for reference types, 0 for basic types like int
PUTFIELD
InstructionFactory.createPutField(String class_name, String name, Type t)
PUTSTATIC
InstructionFactory.createPutStatic(String class_name, String name, Type t)
ReturnInstruction
Create typed return
LocalVariableInstruction
String
Type.getMethodSignature(Type return_type, Type[] arg_types)
Convert type to Java method signature, e.g.
boolean
Return true iff this is assignment compatible with another type t as defined in the JVM specification; see the AASTORE definition there.
boolean
Return true iff this type is castable to another type t as defined in the JVM specification.
void
void
void
void
void
void

Methods with return type org.apache.bcel.generic.Type

Type
Type[]
Type[]
Type.getArgumentTypes(String signature)
Convert arguments of a method (signature) to an array of Type objects.
Type[]
Type
Type
Type
Type
Type
Type.getReturnType(String signature)
Convert return value of a method (signature) to a Type object.
Type
Type
Type
Type
Type
Type
Type
Type.getType(String signature)
Convert signature to a Type object.
Type
Type.getType(java.lang.Class cl)
Convert runtime java.lang.Class to BCEL Type object.
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Type
Returns the type associated with this instruction.
Type
Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned.
Type
Type
Type
Type
Type

Uses in package org.apache.bcel.classfile

Methods with return type org.apache.bcel.generic.Type

Type[]
Type
Type

Uses in package org.apache.bcel.verifier.statics

Classes derived from org.apache.bcel.generic.Type

class
This class represents the upper half of a DOUBLE variable.
class
This class represents the upper half of a LONG variable.

Methods with parameter type org.apache.bcel.generic.Type

void
LocalVariableInfo.add(String name, int startpc, int length, Type t)
Adds some information about this local variable (slot).
void
LocalVariablesInfo.add(int slot, String name, int startpc, int length, Type t)
Adds information about the local variable in slot 'slot'.

Methods with return type org.apache.bcel.generic.Type

Type
Returns the type of the local variable that uses this local variable slot at the given bytecode offset.

Uses in package org.apache.bcel.verifier.structurals

Classes derived from org.apache.bcel.generic.Type

class
This class represents an uninitialized object type; see The Java Virtual Machine Specification, Second Edition, page 147: 4.9.4 for more details.

Methods with parameter type org.apache.bcel.generic.Type

void
Pushes a Type object onto the stack.
void
LocalVariables.set(int i, Type type)
Sets a new Type for the given local variable slot.

Methods with return type org.apache.bcel.generic.Type

Type
Returns the type of the local variable slot i.
Type
Returns the element on top of the stack.
Type
Returns the element that's i elements below the top element; that means, iff i==0 the top element is returned.
Type
Returns the element on top of the stack.
Type
Pops i elements off the stack.