Uses of Class
org.apache.bcel.generic.Type
Packages that use Type
Package
Description
Classes that describe the structure of a Java class file and a class file parser.
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects
and byte code instructions.
Utility classes for the Apache Byte Code Engineering Library (BCEL), namely:
Collection classes for JavaClass objects
A converter for class files to HTML
A tool to find instructions patterns via regular expressions
A class to find classes as defined in the CLASSPATH
A class loader that allows to create classes at run time
PassVerifier classes used internally by JustIce.
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()See https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2.2Methods in org.apache.bcel.classfile with parameters of type Type -
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 asString.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.argTypesprivate Type[]MethodGen.argTypesprivate final TypeArrayType.basicTypestatic final Type[]Type.NO_ARGSEmpty array.(package private) final TypeInstructionFactory.MethodObject.resultTypeprotected 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 runtimeClassto BCEL Type object.static TypeConvert signature to a Type object.TypedInstruction.getType(ConstantPoolGen cpg) static Type[]Convert runtimejava.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 origIndex) 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 srcType, Type destType) 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 className, String name, Type type, short kind) Create a field instruction.InstructionFactory.createGetField(String className, String name, Type t) InstructionFactory.createGetStatic(String className, String name, Type t) InstructionFactory.createInvoke(String className, String name, Type retType, Type[] argTypes, short kind) Create an invoke instruction.InstructionFactory.createInvoke(String className, String name, Type retType, Type[] argTypes, short kind, boolean useInterface) 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 className, String name, Type t) InstructionFactory.createPutStatic(String className, String name, Type t) static ReturnInstructionInstructionFactory.createReturn(Type type) Create typed returnstatic LocalVariableInstructionInstructionFactory.createStore(Type type, int index) static StringType.getMethodSignature(Type returnType, Type[] argTypes) 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[] argTypes) voidMethodGen.setReturnType(Type returnType) voidvoidvoidConstructors in org.apache.bcel.generic with parameters of type TypeModifierConstructorDescriptionConstructor for array of given typeFieldGen(int accessFlags, 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 origIndex) Generates a local variable that with index 'index'.MethodGen(int accessFlags, Type returnType, Type[] argTypes, String[] argNames, String methodName, String className, 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 count) 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 method.voidPushes 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.