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 Type
Type.BOOLEAN_TYPE
Theboolean
type.static final Type
Type.BYTE_TYPE
Thebyte
type.static final Type
Type.CHAR_TYPE
Thechar
type.static final Type
Type.DOUBLE_TYPE
Thedouble
type.static final Type
Type.FLOAT_TYPE
Thefloat
type.static final Type
Type.INT_TYPE
Theint
type.static final Type
Type.LONG_TYPE
Thelong
type.static final Type
Type.SHORT_TYPE
Theshort
type.static final Type
Type.VOID_TYPE
Thevoid
type.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 theType
values corresponding to the argument types of the given method.static Type[]
Type.getArgumentTypes
(String methodDescriptor) Returns theType
values corresponding to the argument types of the given method descriptor.Type.getElementType()
Returns the type of the elements of this array type.static Type
Type.getMethodType
(String methodDescriptor) Returns theType
corresponding to the given method descriptor.static Type
Type.getMethodType
(Type returnType, Type... argumentTypes) Returns the methodType
corresponding to the given argument and return types.static Type
Type.getObjectType
(String internalName) Returns theType
corresponding to the given internal name.Type.getReturnType()
Returns the return type of methods of this type.static Type
Type.getReturnType
(Method method) Returns theType
corresponding to the return type of the given method.static Type
Type.getReturnType
(String methodDescriptor) Returns theType
corresponding to the return type of the given method descriptor.static Type
Returns theType
corresponding to the given class.static Type
Type.getType
(Constructor<?> constructor) Returns the methodType
corresponding to the given constructor.static Type
Returns the methodType
corresponding to the given method.static Type
Returns theType
corresponding to the given type descriptor.private static Type
Type.getTypeInternal
(String descriptorBuffer, int descriptorBegin, int descriptorEnd) Returns theType
corresponding to the given field or method descriptor.Methods in org.objectweb.asm with parameters of type TypeModifier and TypeMethodDescriptionstatic String
Type.getMethodDescriptor
(Type returnType, Type... argumentTypes) Returns the descriptor corresponding to the given argument and return types.static Type
Type.getMethodType
(Type returnType, Type... argumentTypes) Returns the methodType
corresponding 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.argumentTypes
The argument types of the visited method.private static final Type
GeneratorAdapter.BOOLEAN_TYPE
private static final Type
GeneratorAdapter.BYTE_TYPE
private static final Type
GeneratorAdapter.CHARACTER_TYPE
private static final Type
GeneratorAdapter.DOUBLE_TYPE
private static final Type
GeneratorAdapter.FLOAT_TYPE
private static final Type
GeneratorAdapter.INTEGER_TYPE
private static final Type
GeneratorAdapter.LONG_TYPE
private static final Type
GeneratorAdapter.NUMBER_TYPE
private static final Type
GeneratorAdapter.OBJECT_TYPE
static final Type
InstructionAdapter.OBJECT_TYPE
The type of the java.lang.Object class.private static final Type
LocalVariablesSorter.OBJECT_TYPE
The type of the java.lang.Object class.private final Type
GeneratorAdapter.returnType
The return type of the visited method.private static final Type
GeneratorAdapter.SHORT_TYPE
Fields in org.objectweb.asm.commons with type parameters of type TypeModifier and TypeFieldDescriptionGeneratorAdapter.localTypes
The 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 Type
GeneratorAdapter.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 Type
Methods in org.objectweb.asm.commons with parameters of type TypeModifier and TypeMethodDescriptionvoid
void
void
void
void
void
Generates the instruction to load an element from an array.void
GeneratorAdapter.arrayStore
(Type type) Generates the instruction to store an element in an array.void
void
Generates the instructions to box the top stack value.void
Generates the instructions to cast a numerical value from one type to another.(package private) static void
InstructionAdapter.cast
(MethodVisitor methodVisitor, Type from, Type to) Generates the instruction to cast from the first given type to the other.void
Generates the instruction to cast from the first given type to the other.void
GeneratorAdapter.catchException
(Label start, Label end, Type exception) Marks the start of an exception handler.void
void
Generates the instruction to check that the top stack value is of the given type.void
void
void
private void
Generates a get field or set field instruction.private static Type
GeneratorAdapter.getBoxedType
(Type type) void
Generates 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.void
Generates the instruction to push the value of a static field on the stack.void
Generates the instructions to jump to a label based on the comparison of the top two stack values.void
GeneratorAdapter.instanceOf
(Type type) Generates the instruction to test if the top stack value is of the given type.void
InstructionAdapter.instanceOf
(Type type) void
GeneratorAdapter.invokeConstructor
(Type type, Method method) Generates the instruction to invoke a constructor.private void
GeneratorAdapter.invokeInsn
(int opcode, Type type, Method method, boolean isInterface) Generates an invoke method instruction.void
GeneratorAdapter.invokeInterface
(Type owner, Method method) Generates the instruction to invoke an interface method.void
GeneratorAdapter.invokeStatic
(Type owner, Method method) Generates the instruction to invoke a static method.void
GeneratorAdapter.invokeVirtual
(Type owner, Method method) Generates the instruction to invoke a normal method.void
private void
Generates the instruction to push a local variable on the stack.void
Generates the instruction to load the given local variable on the stack.private Type
void
Generates the instruction to do the specified mathematical or logical operation.void
void
(package private) static void
InstructionAdapter.newarray
(MethodVisitor methodVisitor, Type type) Generates the instruction to create and push on the stack an array of the given type.void
Generates the instruction to create and push on the stack an array of the given type.void
Generates the instruction to create a new array.void
GeneratorAdapter.newInstance
(Type type) Generates the instruction to create a new object.int
Constructs a new local variable of the given type.protected int
LocalVariablesSorter.newLocalMapping
(Type type) void
void
Generates the instruction to push the given value on the stack.void
Generates the instruction to store the top stack value in a non static field.void
Generates the instruction to store the top stack value in a static field.void
private int
protected void
GeneratorAdapter.setLocalType
(int local, Type type) protected void
LocalVariablesSorter.setLocalType
(int local, Type type) Notifies subclasses that a local variable has been added or remapped.void
void
void
private void
Generates the instruction to store the top stack value in a local variable.void
GeneratorAdapter.storeLocal
(int local, Type type) Generates the instruction to store the top stack value in the given local variable.void
void
Generates the instructions to swap the top two stack values.void
Generates the instruction to push the given type on the stack.void
GeneratorAdapter.throwException
(Type type, String message) Generates the instructions to create and throw an exception.private void
Generates a type dependent instruction.void
Generates the instructions to unbox the top stack value.void
void
Generates the instructions to box the top stack value using Java 5's valueOf() method.void
Constructors 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 Type
SimpleVerifier.currentClass
The type of the class that is verified.private final Type
SimpleVerifier.currentSuperClass
The type of the super class of the class that is verified.static final Type
BasicInterpreter.NULL_TYPE
Special type used for the null literal.private final Type
BasicValue.type
TheType
of this value, or null for uninitialized values.Fields in org.objectweb.asm.tree.analysis with type parameters of type TypeModifier and TypeFieldDescriptionSimpleVerifier.currentClassInterfaces
The types of the interfaces directly implemented by the class that is verified.Methods in org.objectweb.asm.tree.analysis that return TypeModifier and TypeMethodDescriptionprotected Type
SimpleVerifier.getSuperClass
(Type type) Returns the type corresponding to the super class of the given type.BasicValue.getType()
Returns theType
of 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 Type
SimpleVerifier.getSuperClass
(Type type) Returns the type corresponding to the super class of the given type.protected boolean
SimpleVerifier.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 boolean
SimpleVerifier.isInterface
(Type type) Returns whether the given type corresponds to the type of an interface.private BasicValue
SimpleVerifier.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 V
Creates a new value that represents the given type.Constructors in org.objectweb.asm.tree.analysis with parameters of type TypeModifierConstructorDescriptionBasicValue
(Type type) Constructs a newBasicValue
of the given type.protected
SimpleVerifier
(int api, Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifier
to verify a specific class.SimpleVerifier
(Type currentClass, Type currentSuperClass, boolean isInterface) Constructs a newSimpleVerifier
to verify a specific class.SimpleVerifier
(Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifier
to verify a specific class.Constructor parameters in org.objectweb.asm.tree.analysis with type arguments of type TypeModifierConstructorDescriptionprotected
SimpleVerifier
(int api, Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifier
to verify a specific class.SimpleVerifier
(Type currentClass, Type currentSuperClass, List<Type> currentClassInterfaces, boolean isInterface) Constructs a newSimpleVerifier
to verify a specific class. -
Uses of Type in org.objectweb.asm.util
Methods in org.objectweb.asm.util with parameters of type Type