Uses of Class
org.apache.bcel.generic.Type
-
Packages that use Type Package Description org.apache.bcel.classfile Classes that describe the structure of a Java class file and a class file parser.org.apache.bcel.generic Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.org.apache.bcel.verifier.statics PassVerifier classes used internally by JustIce.org.apache.bcel.verifier.structurals 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 Type Modifier and Type Method Description Type[]Method. getArgumentTypes()TypeMethod. getReturnType()TypeField. 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 Modifier and Type Method Description FieldJavaClass. findField(java.lang.String fieldName, Type fieldType)Finds a visible field by name and type in this class and its super classes. -
Uses of Type in org.apache.bcel.generic
Subclasses of Type in org.apache.bcel.generic Modifier and Type Class Description classArrayTypeDenotes array type, such as int[][]classBasicTypeDenotes basic type such as int.classObjectTypeDenotes reference such asString.classReferenceTypeSuper class for object and array types.classReturnaddressTypeReturnaddress, the type JSR or JSR_W instructions push upon the stack.Fields in org.apache.bcel.generic declared as Type Modifier and Type Field Description static Type[]Type. NO_ARGSEmpty array.protected TypeFieldGenOrMethodGen. typeDeprecated.(since 6.0) will be made private; do not access directly, use getter/setterstatic TypeType. UNKNOWNMethods in org.apache.bcel.generic that return Type Modifier and Type Method Description TypeMethodGen. getArgumentType(int i)Type[]InvokeInstruction. getArgumentTypes(ConstantPoolGen cpg)Type[]MethodGen. getArgumentTypes()static Type[]Type. getArgumentTypes(java.lang.String signature)Convert arguments of a method (signature) to an array of Type objects.TypeArrayType. getBasicType()TypeArrayType. getElementType()TypeFieldInstruction. getFieldType(ConstantPoolGen cpg)TypeInvokeInstruction. getReturnType(ConstantPoolGen cpg)TypeMethodGen. getReturnType()static TypeType. getReturnType(java.lang.String signature)Convert return value of a method (signature) to a Type object.TypeACONST_NULL. getType(ConstantPoolGen cp)TypeArithmeticInstruction. getType(ConstantPoolGen cp)TypeArrayInstruction. getType(ConstantPoolGen cp)TypeBIPUSH. getType(ConstantPoolGen cp)TypeConversionInstruction. getType(ConstantPoolGen cp)TypeCPInstruction. getType(ConstantPoolGen cpg)TypeDCMPG. getType(ConstantPoolGen cp)TypeDCMPL. getType(ConstantPoolGen cp)TypeDCONST. getType(ConstantPoolGen cp)TypeFCMPG. getType(ConstantPoolGen cp)TypeFCMPL. getType(ConstantPoolGen cp)TypeFCONST. getType(ConstantPoolGen cp)TypeFieldGenOrMethodGen. getType()TypeFieldInstruction. getType(ConstantPoolGen cpg)TypeICONST. getType(ConstantPoolGen cp)TypeIINC. getType(ConstantPoolGen cp)TypeInvokeInstruction. getType(ConstantPoolGen cpg)TypeJsrInstruction. getType(ConstantPoolGen cp)TypeLCMP. getType(ConstantPoolGen cp)TypeLCONST. getType(ConstantPoolGen cp)TypeLDC. getType(ConstantPoolGen cpg)TypeLDC2_W. getType(ConstantPoolGen cpg)TypeLoadClass. getType(ConstantPoolGen cpg)Returns the type associated with this instruction.TypeLocalVariableGen. getType()TypeLocalVariableInstruction. getType(ConstantPoolGen cp)Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned.TypeNamedAndTyped. getType()TypeNEWARRAY. getType()TypeRET. getType(ConstantPoolGen cp)TypeReturnInstruction. getType()TypeReturnInstruction. getType(ConstantPoolGen cp)TypeSIPUSH. getType(ConstantPoolGen cp)TypeStackInstruction. getType(ConstantPoolGen cp)static TypeType. getType(java.lang.Class<?> cls)Convert runtimeClassto BCEL Type object.static TypeType. getType(java.lang.String signature)Convert signature to a Type object.TypeTypedInstruction. getType(ConstantPoolGen cpg)static Type[]Type. getTypes(java.lang.Class<?>[] classes)Convert runtimejava.lang.Class[]to BCEL Type objects.TypeType. 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 Type Modifier and Type Method Description LocalVariableGenMethodGen. addLocalVariable(java.lang.String name, Type type, int slot, InstructionHandle start, InstructionHandle end)Adds a local variable to this method.LocalVariableGenMethodGen. addLocalVariable(java.lang.String name, Type type, int slot, InstructionHandle start, InstructionHandle end, int origIndex)Adds a local variable to this method.LocalVariableGenMethodGen. addLocalVariable(java.lang.String name, Type type, InstructionHandle start, InstructionHandle end)Adds a local variable to this method and assigns an index automatically.InstructionInstructionFactory. createAppend(Type type)static ArrayInstructionInstructionFactory. createArrayLoad(Type type)static ArrayInstructionInstructionFactory. createArrayStore(Type type)static ArithmeticInstructionInstructionFactory. createBinaryOperation(java.lang.String op, Type type)Create binary operation for simple basic types, such as int and float.InstructionInstructionFactory. 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.FieldInstructionInstructionFactory. createFieldAccess(java.lang.String className, java.lang.String name, Type type, short kind)Create a field instruction.GETFIELDInstructionFactory. createGetField(java.lang.String className, java.lang.String name, Type t)GETSTATICInstructionFactory. createGetStatic(java.lang.String className, java.lang.String name, Type t)InvokeInstructionInstructionFactory. createInvoke(java.lang.String className, java.lang.String name, Type retType, Type[] argTypes, short kind)Create an invoke instruction.InvokeInstructionInstructionFactory. createInvoke(java.lang.String className, java.lang.String name, Type retType, Type[] argTypes, short kind, boolean useInterface)Create an invoke instruction.static LocalVariableInstructionInstructionFactory. createLoad(Type type, int index)InstructionInstructionFactory. 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 intPUTFIELDInstructionFactory. createPutField(java.lang.String className, java.lang.String name, Type t)PUTSTATICInstructionFactory. createPutStatic(java.lang.String className, java.lang.String name, Type t)static ReturnInstructionInstructionFactory. createReturn(Type type)Create typed returnstatic LocalVariableInstructionInstructionFactory. createStore(Type type, int index)static java.lang.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.voidMethodGen. setArgumentType(int i, Type type)voidMethodGen. setArgumentTypes(Type[] argTypes)voidMethodGen. setReturnType(Type returnType)voidFieldGenOrMethodGen. setType(Type type)voidLocalVariableGen. setType(Type type)voidNamedAndTyped. setType(Type type)Constructors in org.apache.bcel.generic with parameters of type Type Constructor Description ArrayType(Type type, int dimensions)Constructor for array of given typeFieldGen(int accessFlags, Type type, java.lang.String name, ConstantPoolGen cp)Declare a field.LocalVariableGen(int index, java.lang.String name, Type type, InstructionHandle start, InstructionHandle end)Generate a local variable that with index 'index'.LocalVariableGen(int index, java.lang.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, java.lang.String[] argNames, java.lang.String methodName, java.lang.String className, InstructionList il, ConstantPoolGen cp)Declare method. -
Uses of Type in org.apache.bcel.verifier.statics
Subclasses of Type in org.apache.bcel.verifier.statics Modifier and Type Class Description classDOUBLE_UpperThis class represents the upper half of a DOUBLE variable.classLONG_UpperThis class represents the upper half of a LONG variable.Methods in org.apache.bcel.verifier.statics that return Type Modifier and Type Method Description TypeLocalVariableInfo. 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 Type Modifier and Type Method Description voidLocalVariableInfo. add(java.lang.String name, int startPc, int length, Type type)Adds some information about this local variable (slot).voidLocalVariablesInfo. add(int slot, java.lang.String name, int startPc, int length, Type type)Adds information about the local variable in slot 'slot'. -
Uses of Type in org.apache.bcel.verifier.structurals
Subclasses of Type in org.apache.bcel.verifier.structurals Modifier and Type Class Description classUninitializedObjectTypeThis class represents an uninitialized object type; see The Java Virtual Machine Specification, Second Edition, page 147: 4.9.4 for more details.Methods in org.apache.bcel.verifier.structurals that return Type Modifier and Type Method Description TypeLocalVariables. get(int slotIndex)Returns the type of the local variable slot index.TypeOperandStack. peek()Returns the element on top of the stack.TypeOperandStack. peek(int i)Returns the element that's i elements below the top element; that means, iff i==0 the top element is returned.TypeOperandStack. pop()Returns the element on top of the stack.TypeOperandStack. pop(int count)Pops i elements off the stack.Methods in org.apache.bcel.verifier.structurals with parameters of type Type Modifier and Type Method Description voidPass3bVerifier. invalidReturnTypeError(Type returnedType, MethodGen m)Throws an exception indicating the returned type is not compatible with the return type of the given method.voidOperandStack. push(Type type)Pushes a Type object onto the stack.voidLocalVariables. set(int slotIndex, Type type)Sets a new Type for the given local variable slot.
-