类 org.objectweb.asm.commons.Method
的使用

使用 Method 的软件包
org.objectweb.asm.commons Provides some useful class and method adapters. 
 

org.objectweb.asm.commonsMethod 的使用
 

返回 Methodorg.objectweb.asm.commons 中的方法
static Method Method.getMethod(String method)
          Returns a Method corresponding to the given Java method declaration.
static Method Method.getMethod(String method, boolean defaultPackage)
          Returns a Method corresponding to the given Java method declaration.
 

参数类型为 Methodorg.objectweb.asm.commons 中的方法
 void GeneratorAdapter.invokeConstructor(Type type, Method method)
          Generates the instruction to invoke a constructor.
 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.
 

参数类型为 Methodorg.objectweb.asm.commons 中的构造方法
GeneratorAdapter(int access, Method method, MethodVisitor mv)
          Creates a new GeneratorAdapter.
GeneratorAdapter(int access, Method method, String signature, Type[] exceptions, ClassVisitor cv)
          Creates a new GeneratorAdapter.
 



Copyright © 2013. All Rights Reserved.