Java Code Examples for jdk.internal.org.objectweb.asm.MethodVisitor#visitParameter()

The following examples show how to use jdk.internal.org.objectweb.asm.MethodVisitor#visitParameter() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: Bytecoder   File: ProxyGenerator.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Generate the constructor method for the proxy class.
 */
private void generateConstructor() {
    MethodVisitor ctor = visitMethod(Modifier.PUBLIC, NAME_CTOR,
            MJLR_INVOCATIONHANDLER, null, null);
    ctor.visitParameter(null, 0);
    ctor.visitCode();
    ctor.visitVarInsn(ALOAD, 0);
    ctor.visitVarInsn(ALOAD, 1);
    ctor.visitMethodInsn(INVOKESPECIAL, JLR_PROXY, NAME_CTOR,
            MJLR_INVOCATIONHANDLER, false);
    ctor.visitInsn(RETURN);

    // Maxs computed by ClassWriter.COMPUTE_FRAMES, these arguments ignored
    ctor.visitMaxs(-1, -1);
    ctor.visitEnd();
}
 
Example 2
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 3
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 4
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 5
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 6
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 7
Source Project: Bytecoder   File: ParameterNode.java    License: Apache License 2.0 2 votes vote down vote up
/**
  * Makes the given visitor visit this parameter declaration.
  *
  * @param methodVisitor a method visitor.
  */
public void accept(final MethodVisitor methodVisitor) {
    methodVisitor.visitParameter(name, access);
}
 
Example 8
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 9
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 10
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 11
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 12
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 13
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 14
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}
 
Example 15
/**
 * Makes the given visitor visit this parameter declaration.
 *
 * @param mv
 *            a method visitor.
 */
public void accept(final MethodVisitor mv) {
    mv.visitParameter(name, access);
}