Uses of Class
org.objectweb.asm.Type
-
Packages that use Type Package Description org.objectweb.asm Provides a small and fast bytecode manipulation framework.org.objectweb.asm.commons Provides some useful class and method adapters.org.objectweb.asm.tree.analysis Provides a framework for static code analysis based on the asm.tree package.org.objectweb.asm.util 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 Type Modifier and Type Field Description static TypeType. BOOLEAN_TYPEThebooleantype.static TypeType. BYTE_TYPEThebytetype.static TypeType. CHAR_TYPEThechartype.static TypeType. DOUBLE_TYPEThedoubletype.static TypeType. FLOAT_TYPEThefloattype.static TypeType. INT_TYPETheinttype.static TypeType. LONG_TYPEThelongtype.static TypeType. SHORT_TYPETheshorttype.static TypeType. VOID_TYPEThevoidtype.Methods in org.objectweb.asm that return Type Modifier and Type Method Description Type[]Type. getArgumentTypes()Returns the argument types of methods of this type.static Type[]Type. getArgumentTypes(java.lang.reflect.Method method)Returns theTypevalues corresponding to the argument types of the given method.static Type[]Type. getArgumentTypes(java.lang.String methodDescriptor)Returns theTypevalues corresponding to the argument types of the given method descriptor.TypeType. getElementType()Returns the type of the elements of this array type.static TypeType. getMethodType(java.lang.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(java.lang.String internalName)Returns theTypecorresponding to the given internal name.TypeType. getReturnType()Returns the return type of methods of this type.static TypeType. getReturnType(java.lang.reflect.Method method)Returns theTypecorresponding to the return type of the given method.static TypeType. getReturnType(java.lang.String methodDescriptor)Returns theTypecorresponding to the return type of the given method descriptor.static TypeType. getType(java.lang.Class<?> clazz)Returns theTypecorresponding to the given class.static TypeType. getType(java.lang.reflect.Constructor<?> constructor)Returns the methodTypecorresponding to the given constructor.static TypeType. getType(java.lang.reflect.Method method)Returns the methodTypecorresponding to the given method.static TypeType. getType(java.lang.String typeDescriptor)Returns theTypecorresponding to the given type descriptor.private static TypeType. getTypeInternal(java.lang.String descriptorBuffer, int descriptorBegin, int descriptorEnd)Returns theTypecorresponding to the given field or method descriptor.Methods in org.objectweb.asm with parameters of type Type Modifier and Type Method Description static java.lang.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 Type Modifier and Type Field Description private Type[]GeneratorAdapter. argumentTypesThe argument types of the visited method.private static TypeGeneratorAdapter. BOOLEAN_TYPEprivate static TypeGeneratorAdapter. BYTE_TYPEprivate static TypeGeneratorAdapter. CHARACTER_TYPEprivate static TypeGeneratorAdapter. DOUBLE_TYPEprivate static TypeGeneratorAdapter. FLOAT_TYPEprivate static TypeGeneratorAdapter. INTEGER_TYPEprivate static TypeGeneratorAdapter. LONG_TYPEprivate static TypeGeneratorAdapter. NUMBER_TYPEprivate static TypeGeneratorAdapter. OBJECT_TYPEstatic TypeInstructionAdapter. OBJECT_TYPEThe type of the java.lang.Object class.private static TypeLocalVariablesSorter. OBJECT_TYPEThe type of the java.lang.Object class.private TypeGeneratorAdapter. returnTypeThe return type of the visited method.private static TypeGeneratorAdapter. SHORT_TYPEFields in org.objectweb.asm.commons with type parameters of type Type Modifier and Type Field Description private java.util.List<Type>GeneratorAdapter. localTypesThe types of the local variables of the visited method.Methods in org.objectweb.asm.commons that return Type Modifier and Type Method Description Type[]GeneratorAdapter. getArgumentTypes()Type[]Method. getArgumentTypes()Returns the argument types of the method described by this object.private static TypeGeneratorAdapter. getBoxedType(Type type)TypeGeneratorAdapter. getLocalType(int local)Returns the type of the given local variable.TypeGeneratorAdapter. getReturnType()TypeMethod. getReturnType()Returns the return type of the method described by this object.private TypeRemapper. mapType(Type type)Methods in org.objectweb.asm.commons with parameters of type Type Modifier and Type Method Description voidInstructionAdapter. add(Type type)voidInstructionAdapter. aload(Type type)voidInstructionAdapter. and(Type type)voidInstructionAdapter. anew(Type type)voidInstructionAdapter. areturn(Type type)voidGeneratorAdapter. arrayLoad(Type type)Generates the instruction to load an element from an array.voidGeneratorAdapter. arrayStore(Type type)Generates the instruction to store an element in an array.voidInstructionAdapter. astore(Type type)voidGeneratorAdapter. box(Type type)Generates the instructions to box the top stack value.voidGeneratorAdapter. cast(Type from, Type to)Generates 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.voidInstructionAdapter. cast(Type from, Type to)Generates 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.voidInstructionAdapter. checkcast(Type type)voidGeneratorAdapter. checkCast(Type type)Generates the instruction to check that the top stack value is of the given type.voidInstructionAdapter. cmpg(Type type)voidInstructionAdapter. cmpl(Type type)voidInstructionAdapter. div(Type type)private voidGeneratorAdapter. fieldInsn(int opcode, Type ownerType, java.lang.String name, Type fieldType)Generates a get field or set field instruction.private static TypeGeneratorAdapter. getBoxedType(Type type)voidGeneratorAdapter. getField(Type owner, java.lang.String name, Type type)Generates the instruction to push the value of a non static field on the stack.private static java.lang.String[]GeneratorAdapter. getInternalNames(Type[] types)Returns the internal names of the given types.voidGeneratorAdapter. getStatic(Type owner, java.lang.String name, Type type)Generates the instruction to push the value of a static field on the stack.voidGeneratorAdapter. ifCmp(Type type, int mode, Label label)Generates 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.voidInstructionAdapter. load(int var, Type type)private voidGeneratorAdapter. loadInsn(Type type, int index)Generates the instruction to push a local variable on the stack.voidGeneratorAdapter. loadLocal(int local, Type type)Generates the instruction to load the given local variable on the stack.private TypeRemapper. mapType(Type type)voidGeneratorAdapter. math(int op, Type type)Generates the instruction to do the specified mathematical or logical operation.voidInstructionAdapter. mul(Type type)voidInstructionAdapter. neg(Type type)(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.voidInstructionAdapter. newarray(Type type)Generates the instruction to create and push on the stack an array of the given type.voidGeneratorAdapter. newArray(Type type)Generates the instruction to create a new array.voidGeneratorAdapter. newInstance(Type type)Generates the instruction to create a new object.intLocalVariablesSorter. newLocal(Type type)Constructs a new local variable of the given type.protected intLocalVariablesSorter. newLocalMapping(Type type)voidInstructionAdapter. or(Type type)voidGeneratorAdapter. push(Type value)Generates the instruction to push the given value on the stack.voidGeneratorAdapter. putField(Type owner, java.lang.String name, Type type)Generates the instruction to store the top stack value in a non static field.voidGeneratorAdapter. putStatic(Type owner, java.lang.String name, Type type)Generates the instruction to store the top stack value in a static field.voidInstructionAdapter. rem(Type type)private intLocalVariablesSorter. remap(int var, Type type)protected voidGeneratorAdapter. setLocalType(int local, Type type)protected voidLocalVariablesSorter. setLocalType(int local, Type type)Notifies subclasses that a local variable has been added or remapped.voidInstructionAdapter. shl(Type type)voidInstructionAdapter. shr(Type type)voidInstructionAdapter. store(int var, Type type)private voidGeneratorAdapter. storeInsn(Type type, int index)Generates 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.voidInstructionAdapter. sub(Type type)voidGeneratorAdapter. swap(Type prev, Type type)Generates the instructions to swap the top two stack values.voidInstructionAdapter. tconst(Type type)Generates the instruction to push the given type on the stack.voidGeneratorAdapter. throwException(Type type, java.lang.String message)Generates the instructions to create and throw an exception.private voidGeneratorAdapter. typeInsn(int opcode, Type type)Generates a type dependent instruction.voidGeneratorAdapter. unbox(Type type)Generates the instructions to unbox the top stack value.voidInstructionAdapter. ushr(Type type)voidGeneratorAdapter. valueOf(Type type)Generates the instructions to box the top stack value using Java 5's valueOf() method.voidInstructionAdapter. xor(Type type)Constructors in org.objectweb.asm.commons with parameters of type Type Constructor Description GeneratorAdapter(int access, Method method, java.lang.String signature, Type[] exceptions, ClassVisitor classVisitor)Constructs a newGeneratorAdapter.Method(java.lang.String name, Type returnType, Type[] argumentTypes)Constructs a newMethod. -
Uses of Type in org.objectweb.asm.tree.analysis
Fields in org.objectweb.asm.tree.analysis declared as Type Modifier and Type Field Description private TypeSimpleVerifier. currentClassThe type of the class that is verified.private TypeSimpleVerifier. currentSuperClassThe type of the super class of the class that is verified.static TypeBasicInterpreter. NULL_TYPESpecial type used for the null literal.private TypeBasicValue. typeTheTypeof this value, or null for uninitialized values.Fields in org.objectweb.asm.tree.analysis with type parameters of type Type Modifier and Type Field Description private java.util.List<Type>SimpleVerifier. currentClassInterfacesThe types of the interfaces directly implemented by the class that is verified.Methods in org.objectweb.asm.tree.analysis that return Type Modifier and Type Method Description protected TypeSimpleVerifier. getSuperClass(Type type)Returns the type corresponding to the super class of the given type.TypeBasicValue. getType()Returns theTypeof this value.Methods in org.objectweb.asm.tree.analysis with parameters of type Type Modifier and Type Method Description protected java.lang.Class<?>SimpleVerifier. getClass(Type type)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)VInterpreter. newExceptionValue(TryCatchBlockNode tryCatchBlockNode, Frame<V> handlerFrame, Type exceptionType)Creates a new value that represents the given exception type.VInterpreter. newParameterValue(boolean isInstanceMethod, int local, Type type)Creates a new value that represents the given parameter type.VInterpreter. newReturnTypeValue(Type type)Creates a new value that represents the given return type.BasicValueBasicInterpreter. newValue(Type type)abstract VInterpreter. newValue(Type type)Creates a new value that represents the given type.BasicValueSimpleVerifier. newValue(Type type)SourceValueSourceInterpreter. newValue(Type type)Constructors in org.objectweb.asm.tree.analysis with parameters of type Type Constructor Description BasicValue(Type type)Constructs a newBasicValueof the given type.SimpleVerifier(int api, Type currentClass, Type currentSuperClass, java.util.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, java.util.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 Type Constructor Description SimpleVerifier(int api, Type currentClass, Type currentSuperClass, java.util.List<Type> currentClassInterfaces, boolean isInterface)Constructs a newSimpleVerifierto verify a specific class.SimpleVerifier(Type currentClass, Type currentSuperClass, java.util.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 Modifier and Type Method Description private voidTextifier. visitType(Type value)
-