Uses of Class
org.objectweb.asm.Type
Packages that use Type
Package
Description
Provides a small and fast bytecode manipulation framework.
Provides some useful class and method adapters.
Provides a framework for static code analysis based on the asm.tree package.
Provides ASM visitors that can be useful for programming and
debugging purposes.
-
Uses of Type in org.objectweb.asm
Fields in org.objectweb.asm declared as TypeModifier and TypeFieldDescriptionstatic final TypeType.BOOLEAN_TYPEThebooleantype.static final TypeType.BYTE_TYPEThebytetype.static final TypeType.CHAR_TYPEThechartype.static final TypeType.DOUBLE_TYPEThedoubletype.static final TypeType.FLOAT_TYPEThefloattype.static final TypeType.INT_TYPETheinttype.static final TypeType.LONG_TYPEThelongtype.static final TypeType.SHORT_TYPETheshorttype.static final TypeType.VOID_TYPEThevoidtype.Methods in org.objectweb.asm that return TypeModifier and TypeMethodDescriptionType[]Type.getArgumentTypes()Returns the argument types of methods of this type.static Type[]Type.getArgumentTypes(Method method) Returns theTypevalues corresponding to the argument types of the given method.static Type[]Type.getArgumentTypes(String methodDescriptor) Returns theTypevalues corresponding to the argument types of the given method descriptor.Type.getElementType()Returns the type of the elements of this array type.static TypeType.getMethodType(String methodDescriptor) Returns theTypecorresponding to the given method descriptor.static TypeType.getMethodType(Type returnType, Type... argumentTypes) Returns the methodTypecorresponding to the given argument and return types.static TypeType.getObjectType(String internalName) Returns theTypecorresponding to the given internal name.Type.getReturnType()Returns the return type of methods of this type.static TypeType.getReturnType(Method method) Returns theTypecorresponding to the return type of the given method.static TypeType.getReturnType(String methodDescriptor) Returns theTypecorresponding to the return type of the given method descriptor.static TypeReturns theTypecorresponding to the given class.static TypeType.getType(Constructor<?> constructor) Returns the methodTypecorresponding to the given constructor.static TypeReturns the methodTypecorresponding to the given method.static TypeReturns theTypecorresponding to the given type descriptor.private static TypeType.getTypeInternal(String descriptorBuffer, int descriptorBegin, int descriptorEnd) Returns theTypecorresponding to the given field or method descriptor.Methods in org.objectweb.asm with parameters of type TypeModifier and TypeMethodDescriptionstatic StringType.getMethodDescriptor(Type returnType, Type... argumentTypes) Returns the descriptor corresponding to the given argument and return types.static TypeType.getMethodType(Type returnType, Type... argumentTypes) Returns the methodTypecorresponding to the given argument and return types. -
Uses of Type in org.objectweb.asm.commons
Fields in org.objectweb.asm.commons declared as TypeModifier and TypeFieldDescriptionprivate final Type[]GeneratorAdapter.argumentTypesThe argument types of the visited method.private static final TypeGeneratorAdapter.BOOLEAN_TYPEprivate static final TypeGeneratorAdapter.BYTE_TYPEprivate static final TypeGeneratorAdapter.CHARACTER_TYPEprivate static final TypeGeneratorAdapter.DOUBLE_TYPEprivate static final TypeGeneratorAdapter.FLOAT_TYPEprivate static final TypeGeneratorAdapter.INTEGER_TYPEprivate static final TypeGeneratorAdapter.LONG_TYPEprivate static final TypeGeneratorAdapter.NUMBER_TYPEprivate static final TypeGeneratorAdapter.OBJECT_TYPEstatic final TypeInstructionAdapter.OBJECT_TYPEThe type of the java.lang.Object class.private static final TypeLocalVariablesSorter.OBJECT_TYPEThe type of the java.lang.Object class.private final TypeGeneratorAdapter.returnTypeThe return type of the visited method.private static final TypeGeneratorAdapter.SHORT_TYPEFields in org.objectweb.asm.commons with type parameters of type TypeModifier and TypeFieldDescriptionGeneratorAdapter.localTypesThe types of the local variables of the visited method.Methods in org.objectweb.asm.commons that return TypeModifier and TypeMethodDescriptionType[]GeneratorAdapter.getArgumentTypes()Type[]Method.getArgumentTypes()Returns the argument types of the method described by this object.private static TypeGeneratorAdapter.getBoxedType(Type type) GeneratorAdapter.getLocalType(int local) Returns the type of the given local variable.GeneratorAdapter.getReturnType()Method.getReturnType()Returns the return type of the method described by this object.private TypeMethods in org.objectweb.asm.commons with parameters of type TypeModifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidGenerates the instruction to load an element from an array.voidGeneratorAdapter.arrayStore(Type type) Generates the instruction to store an element in an array.voidvoidGenerates the instructions to box the top stack value.voidGenerates the instructions to cast a numerical value from one type to another.(package private) static voidInstructionAdapter.cast(MethodVisitor methodVisitor, Type from, Type to) Generates the instruction to cast from the first given type to the other.voidGenerates the instruction to cast from the first given type to the other.voidGeneratorAdapter.catchException(Label start, Label end, Type exception) Marks the start of an exception handler.voidvoidGenerates the instruction to check that the top stack value is of the given type.voidvoidvoidprivate voidGenerates a get field or set field instruction.private static TypeGeneratorAdapter.getBoxedType(Type type) voidGenerates the instruction to push the value of a non static field on the stack.private static String[]GeneratorAdapter.getInternalNames(Type[] types) Returns the internal names of the given types.voidGenerates the instruction to push the value of a static field on the stack.voidGenerates the instructions to jump to a label based on the comparison of the top two stack values.voidGeneratorAdapter.instanceOf(Type type) Generates the instruction to test if the top stack value is of the given type.voidInstructionAdapter.instanceOf(Type type) voidGeneratorAdapter.invokeConstructor(Type type, Method method) Generates the instruction to invoke a constructor.private voidGeneratorAdapter.invokeInsn(int opcode, Type type, Method method, boolean isInterface) Generates an invoke method instruction.voidGeneratorAdapter.invokeInterface(Type owner, Method method) Generates the instruction to invoke an interface method.voidGeneratorAdapter.invokeStatic(Type owner, Method method) Generates the instruction to invoke a static method.voidGeneratorAdapter.invokeVirtual(Type owner, Method method) Generates the instruction to invoke a normal method.voidprivate voidGenerates the instruction to push a local variable on the stack.voidGenerates the instruction to load the given local variable on the stack.private TypevoidGenerates the instruction to do the specified mathematical or logical operation.voidvoid(package private) static voidInstructionAdapter.newarray(MethodVisitor methodVisitor, Type type) Generates the instruction to create and push on the stack an array of the given type.voidGenerates the instruction to create and push on the stack an array of the given type.voidGenerates the instruction to create a new array.voidGeneratorAdapter.newInstance(Type type) Generates the instruction to create a new object.intConstructs a new local variable of the given type.protected intLocalVariablesSorter.newLocalMapping(Type type) voidvoidGenerates the instruction to push the given value on the stack.voidGenerates the instruction to store the top stack value in a non static field.voidGenerates the instruction to store the top stack value in a static field.voidprivate intprotected voidGeneratorAdapter.setLocalType(int local, Type type) protected voidLocalVariablesSorter.setLocalType(int local, Type type) Notifies subclasses that a local variable has been added or remapped.voidvoidvoidprivate voidGenerates the instruction to store the top stack value in a local variable.voidGeneratorAdapter.storeLocal(int local, Type type) Generates the instruction to store the top stack value in the given local variable.voidvoidGenerates the instructions to swap the top two stack values.voidGenerates the instruction to push the given type on the stack.voidGeneratorAdapter.throwException(Type type, String message) Generates the instructions to create and throw an exception.private voidGenerates a type dependent instruction.voidGenerates the instructions to unbox the top stack value.voidvoidGenerates the instructions to box the top stack value using Java 5's valueOf() method.voidConstructors in org.objectweb.asm.commons with parameters of type TypeModifierConstructorDescriptionGeneratorAdapter(int access, Method method, String signature, Type[] exceptions, ClassVisitor classVisitor) Constructs a newGeneratorAdapter.Constructs a newMethod. -
Uses of Type in org.objectweb.asm.tree.analysis
Fields in org.objectweb.asm.tree.analysis declared as TypeModifier and TypeFieldDescriptionprivate final TypeSimpleVerifier.currentClassThe type of the class that is verified.private final TypeSimpleVerifier.currentSuperClassThe type of the super class of the class that is verified.static final TypeBasicInterpreter.NULL_TYPESpecial type used for the null literal.private final TypeBasicValue.typeTheTypeof this value, or null for uninitialized values.Fields in org.objectweb.asm.tree.analysis with type parameters of type TypeModifier and TypeFieldDescriptionSimpleVerifier.currentClassInterfacesThe types of the interfaces directly implemented by the class that is verified.Methods in org.objectweb.asm.tree.analysis that return TypeModifier and TypeMethodDescriptionprotected TypeSimpleVerifier.getSuperClass(Type type) Returns the type corresponding to the super class of the given type.BasicValue.getType()Returns theTypeof this value.Methods in org.objectweb.asm.tree.analysis with parameters of type TypeModifier and TypeMethodDescriptionprotected Class<?>Loads the class corresponding to the given type.protected TypeSimpleVerifier.getSuperClass(Type type) Returns the type corresponding to the super class of the given type.protected booleanSimpleVerifier.isAssignableFrom(Type type1, Type type2) Returns whether the class corresponding to the first argument is either the same as, or is a superclass or superinterface of the class corresponding to the second argument.protected booleanSimpleVerifier.isInterface(Type type) Returns whether the given type corresponds to the type of an interface.private BasicValueSimpleVerifier.newArrayValue(Type type, int dimensions) Interpreter.newExceptionValue(TryCatchBlockNode tryCatchBlockNode, Frame<V> handlerFrame, Type exceptionType) Creates a new value that represents the given exception type.Interpreter.newParameterValue(boolean isInstanceMethod, int local, Type type) Creates a new value that represents the given parameter type.Interpreter.newReturnTypeValue(Type type) Creates a new value that represents the given return type.abstract VCreates a new value that represents the given type.Constructors in org.objectweb.asm.tree.analysis with parameters of type TypeModifierConstructorDescriptionBasicValue(Type type) Constructs a newBasicValueof the given type.protectedSimpleVerifier(int api, Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifierto verify a specific class.SimpleVerifier(Type currentClass, Type currentSuperClass, boolean isInterface) Constructs a newSimpleVerifierto verify a specific class.SimpleVerifier(Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifierto verify a specific class.Constructor parameters in org.objectweb.asm.tree.analysis with type arguments of type TypeModifierConstructorDescriptionprotectedSimpleVerifier(int api, Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifierto verify a specific class.SimpleVerifier(Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifierto verify a specific class. -
Uses of Type in org.objectweb.asm.util
Methods in org.objectweb.asm.util with parameters of type Type