Uses of Class
org.apache.bcel.generic.Type
Packages that use Type
Package
Description
This package contains the classes that describe the structure of a
Java class file and a class file parser.
This package contains the "generic" part of the
Byte Code Engineering
Library, i.e., classes to dynamically modify class objects and
byte code instructions.
This package contains utility classes for the
Byte Code Engineering
Library, namely:
Provides PassVerifier classes used internally by JustIce.
Provides a PassVerifier class mostly used internally by JustIce, yielding a control flow graph for public use as
a nice side effect.
-
Uses of Type in org.apache.bcel.classfile
Methods in org.apache.bcel.classfile that return TypeModifier and TypeMethodDescriptionType[]Method.getArgumentTypes()Method.getReturnType()Field.getType() -
Uses of Type in org.apache.bcel.generic
Subclasses of Type in org.apache.bcel.genericModifier and TypeClassDescriptionfinal classDenotes array type, such as int[][]final classDenotes basic type such as int.classDenotes reference such as java.lang.String.classSuper class for object and array types.classReturnaddress, the type JSR or JSR_W instructions push upon the stack.Fields in org.apache.bcel.generic declared as TypeModifier and TypeFieldDescription(package private) final Type[]InstructionFactory.MethodObject.arg_typesprivate Type[]MethodGen.arg_typesprivate TypeArrayType.basic_typestatic final Type[]Type.NO_ARGS(package private) final TypeInstructionFactory.MethodObject.result_typeprotected TypeFieldGenOrMethodGen.typeDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterprivate TypeLocalVariableGen.typestatic final TypeType.UNKNOWNMethods in org.apache.bcel.generic that return TypeModifier and TypeMethodDescriptionMethodGen.getArgumentType(int i) Type[]InvokeInstruction.getArgumentTypes(ConstantPoolGen cpg) Type[]MethodGen.getArgumentTypes()static Type[]Type.getArgumentTypes(String signature) Convert arguments of a method (signature) to an array of Type objects.ArrayType.getBasicType()ArrayType.getElementType()FieldInstruction.getFieldType(ConstantPoolGen cpg) InvokeInstruction.getReturnType(ConstantPoolGen cpg) MethodGen.getReturnType()static TypeType.getReturnType(String signature) Convert return value of a method (signature) to a Type object.ACONST_NULL.getType(ConstantPoolGen cp) ArithmeticInstruction.getType(ConstantPoolGen cp) ArrayInstruction.getType(ConstantPoolGen cp) BIPUSH.getType(ConstantPoolGen cp) ConversionInstruction.getType(ConstantPoolGen cp) CPInstruction.getType(ConstantPoolGen cpg) DCMPG.getType(ConstantPoolGen cp) DCMPL.getType(ConstantPoolGen cp) DCONST.getType(ConstantPoolGen cp) FCMPG.getType(ConstantPoolGen cp) FCMPL.getType(ConstantPoolGen cp) FCONST.getType(ConstantPoolGen cp) FieldGenOrMethodGen.getType()FieldInstruction.getType(ConstantPoolGen cpg) ICONST.getType(ConstantPoolGen cp) IINC.getType(ConstantPoolGen cp) InvokeInstruction.getType(ConstantPoolGen cpg) JsrInstruction.getType(ConstantPoolGen cp) LCMP.getType(ConstantPoolGen cp) LCONST.getType(ConstantPoolGen cp) LDC.getType(ConstantPoolGen cpg) LDC2_W.getType(ConstantPoolGen cpg) LoadClass.getType(ConstantPoolGen cpg) Returns the type associated with this instruction.LocalVariableGen.getType()LocalVariableInstruction.getType(ConstantPoolGen cp) Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned.NamedAndTyped.getType()final TypeNEWARRAY.getType()RET.getType(ConstantPoolGen cp) ReturnInstruction.getType()ReturnInstruction.getType(ConstantPoolGen cp) SIPUSH.getType(ConstantPoolGen cp) StackInstruction.getType(ConstantPoolGen cp) static TypeConvert runtime java.lang.Class to BCEL Type object.static TypeConvert signature to a Type object.TypedInstruction.getType(ConstantPoolGen cpg) static Type[]Convert runtime java.lang.Class[] to BCEL Type objects.Type.normalizeForStackOrLocal()boolean, short and char variable are considered as int in the stack or local variable area.Methods in org.apache.bcel.generic with parameters of type TypeModifier and TypeMethodDescriptionMethodGen.addLocalVariable(String name, Type type, int slot, InstructionHandle start, InstructionHandle end) Adds a local variable to this method.MethodGen.addLocalVariable(String name, Type type, int slot, InstructionHandle start, InstructionHandle end, int orig_index) Adds a local variable to this method.MethodGen.addLocalVariable(String name, Type type, InstructionHandle start, InstructionHandle end) Adds a local variable to this method and assigns an index automatically.private voidInstructionFactory.createAppend(Type type) static ArrayInstructionInstructionFactory.createArrayLoad(Type type) static ArrayInstructionInstructionFactory.createArrayStore(Type type) static ArithmeticInstructionInstructionFactory.createBinaryOperation(String op, Type type) Create binary operation for simple basic types, such as int and float.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.InstructionFactory.createFieldAccess(String class_name, String name, Type type, short kind) Create a field instruction.InstructionFactory.createGetField(String class_name, String name, Type t) InstructionFactory.createGetStatic(String class_name, String name, Type t) InstructionFactory.createInvoke(String class_name, String name, Type ret_type, Type[] arg_types, short kind) Create an invoke instruction.static LocalVariableInstructionInstructionFactory.createLoad(Type type, int index) InstructionFactory.createNewArray(Type t, short dim) Create new array of given size and type.static InstructionInstructionFactory.createNull(Type type) Create "null" value for reference types, 0 for basic types like intInstructionFactory.createPutField(String class_name, String name, Type t) InstructionFactory.createPutStatic(String class_name, String name, Type t) static ReturnInstructionInstructionFactory.createReturn(Type type) Create typed returnstatic LocalVariableInstructionInstructionFactory.createStore(Type type, int index) static StringType.getMethodSignature(Type return_type, Type[] arg_types) Convert type to Java method signature, e.g.booleanReferenceType.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.booleanReferenceType.isCastableTo(Type t) Return true iff this type is castable to another type t as defined in the JVM specification.private static booleanvoidMethodGen.setArgumentType(int i, Type type) voidMethodGen.setArgumentTypes(Type[] arg_types) voidMethodGen.setReturnType(Type return_type) voidvoidvoidConstructors in org.apache.bcel.generic with parameters of type TypeModifierConstructorDescriptionConstructor for array of given typeFieldGen(int access_flags, Type type, String name, ConstantPoolGen cp) Declare a field.LocalVariableGen(int index, String name, Type type, InstructionHandle start, InstructionHandle end) Generate a local variable that with index `index'.LocalVariableGen(int index, String name, Type type, InstructionHandle start, InstructionHandle end, int orig_index) Generates a local variable that with index `index'.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.(package private)MethodObject(String c, String n, Type r, Type[] a) -
Uses of Type in org.apache.bcel.util
Methods in org.apache.bcel.util with parameters of type Type -
Uses of Type in org.apache.bcel.verifier.statics
Subclasses of Type in org.apache.bcel.verifier.staticsModifier and TypeClassDescriptionfinal classThis class represents the upper half of a DOUBLE variable.final classThis class represents the upper half of a LONG variable.Fields in org.apache.bcel.verifier.statics with type parameters of type TypeMethods in org.apache.bcel.verifier.statics that return TypeModifier and TypeMethodDescriptionLocalVariableInfo.getType(int offset) Returns the type of the local variable that uses this local variable slot at the given bytecode offset.Methods in org.apache.bcel.verifier.statics with parameters of type TypeModifier and TypeMethodDescriptionprivate voidAdds information about name and type for a given offset.voidAdds some information about this local variable (slot).voidAdds information about the local variable in slot 'slot'.private voidAdds a type of a local variable and a certain slot to our 'types' (Hashtable) database. -
Uses of Type in org.apache.bcel.verifier.structurals
Subclasses of Type in org.apache.bcel.verifier.structuralsModifier and TypeClassDescriptionclassThis class represents an uninitialized object type; see The Java Virtual Machine Specification, Second Edition, page 147: 4.9.4 for more details.Fields in org.apache.bcel.verifier.structurals declared as TypeModifier and TypeFieldDescriptionprivate final Type[]LocalVariables.localsThe Type[] containing the local variable slots.Fields in org.apache.bcel.verifier.structurals with type parameters of type TypeMethods in org.apache.bcel.verifier.structurals that return TypeModifier and TypeMethodDescriptionLocalVariables.get(int slotIndex) Returns the type of the local variable slot index.OperandStack.peek()Returns the element on top of the stack.OperandStack.peek(int i) Returns the element that's i elements below the top element; that means, iff i==0 the top element is returned.OperandStack.pop()Returns the element on top of the stack.OperandStack.pop(int i) Pops i elements off the stack.Methods in org.apache.bcel.verifier.structurals with parameters of type TypeModifier and TypeMethodDescriptionprivate booleanInstConstraintVisitor.arrayrefOfArrayType(Instruction o, Type arrayref) Assures arrayref is of ArrayType or NULL; returns true if and only if arrayref is non-NULL.private voidInstConstraintVisitor.indexOfInt(Instruction o, Type index) Assures index is of type INT.voidPass3bVerifier.invalidReturnTypeError(Type returnedType, MethodGen m) Throws an exception indicating the returned type is not compatible with the return type of the given methodvoidPushes a Type object onto the stack.voidSets a new Type for the given local variable slot.private voidInstConstraintVisitor.valueOfInt(Instruction o, Type value) Assures value is of type INT.