Example usage for org.objectweb.asm.commons Method getName

List of usage examples for org.objectweb.asm.commons Method getName

Introduction

In this page you can find the example usage for org.objectweb.asm.commons Method getName.

Prototype

public String getName() 

Source Link

Document

Returns the name of the method described by this object.

Usage

From source file:org.kjots.json.object.MethodVisitor.java

License:Apache License

/**
 * Visit a method instruction./* w  ww.j  a  v a 2 s. c o m*/
 * <p>
 * This is a convenience method that is equivalent to the following:
 * <pre>
 *   visitMethodInsn(opcode, type.getInternalName(), method.getName(), method.getDescriptor())
 * </pre>
 *
 * @param opcode The opcode.
 * @param type The type.
 * @param method The method.
 * @see org.objectweb.asm.MethodVisitor#visitMethodInsn(int, String, String, String)
 */
public void visitMethodInsn(int opcode, Type type, Method method) {
    this.asmMethodVisitor.visitMethodInsn(opcode, type.getInternalName(), method.getName(),
            method.getDescriptor());
}