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 class
Denotes array type, such as int[][]final class
Denotes basic type such as int.class
Denotes reference such asString
.class
Super class for object and array types.class
Returnaddress, 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.argTypes
private Type[]
MethodGen.argTypes
private final Type
ArrayType.basicType
static final Type[]
Type.NO_ARGS
Empty array.(package private) final Type
InstructionFactory.MethodObject.resultType
protected Type
FieldGenOrMethodGen.type
Deprecated.(since 6.0) will be made private; do not access directly, use getter/setterprivate Type
LocalVariableGen.type
static final Type
Type.UNKNOWN
Methods 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 Type
Type.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 Type
NEWARRAY.getType()
RET.getType
(ConstantPoolGen cp) ReturnInstruction.getType()
ReturnInstruction.getType
(ConstantPoolGen cp) SIPUSH.getType
(ConstantPoolGen cp) StackInstruction.getType
(ConstantPoolGen cp) static Type
Convert runtimeClass
to BCEL Type object.static Type
Convert 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 void
InstructionFactory.createAppend
(Type type) static ArrayInstruction
InstructionFactory.createArrayLoad
(Type type) static ArrayInstruction
InstructionFactory.createArrayStore
(Type type) static ArithmeticInstruction
InstructionFactory.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 LocalVariableInstruction
InstructionFactory.createLoad
(Type type, int index) 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 intInstructionFactory.createPutField
(String className, String name, Type t) InstructionFactory.createPutStatic
(String className, String name, Type t) static ReturnInstruction
InstructionFactory.createReturn
(Type type) Create typed returnstatic LocalVariableInstruction
InstructionFactory.createStore
(Type type, int index) static String
Type.getMethodSignature
(Type returnType, Type[] argTypes) Convert type to Java method signature, e.g.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.boolean
ReferenceType.isCastableTo
(Type t) Return true iff this type is castable to another type t as defined in the JVM specification.private static boolean
void
MethodGen.setArgumentType
(int i, Type type) void
MethodGen.setArgumentTypes
(Type[] argTypes) void
MethodGen.setReturnType
(Type returnType) void
void
void
Constructors 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 class
This class represents the upper half of a DOUBLE variable.final class
This 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 void
Adds information about name and type for a given offset.void
Adds some information about this local variable (slot).void
Adds information about the local variable in slot 'slot'.private void
Adds 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 TypeClassDescriptionclass
This 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.locals
The 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 boolean
InstConstraintVisitor.arrayrefOfArrayType
(Instruction o, Type arrayref) Assures arrayref is of ArrayType or NULL; returns true if and only if arrayref is non-NULL.private void
InstConstraintVisitor.indexOfInt
(Instruction o, Type index) Assures index is of type INT.void
Pass3bVerifier.invalidReturnTypeError
(Type returnedType, MethodGen m) Throws an exception indicating the returned type is not compatible with the return type of the given method.void
Pushes a Type object onto the stack.void
Sets a new Type for the given local variable slot.private void
InstConstraintVisitor.valueOfInt
(Instruction o, Type value) Assures value is of type INT.