Example usage for org.objectweb.asm MethodVisitor subclass-usage

List of usage examples for org.objectweb.asm MethodVisitor subclass-usage

Introduction

In this page you can find the example usage for org.objectweb.asm MethodVisitor subclass-usage.

Usage

From source file com.github.wolf480pl.mias4j.util.SequenceMethodVisitor.java

public class SequenceMethodVisitor extends MethodVisitor {

    public SequenceMethodVisitor() {
        super(Opcodes.ASM5);
    }

From source file com.google.devtools.build.android.desugar.BytecodeTypeInference.java

/**
 * Perform type inference for byte code (local variables and operand stack) with the help of stack
 * map frames.
 *
 * <p>Note: This class only guarantees the correctness of reference types, but not the primitive
 * types, though they might be correct too.

From source file com.google.devtools.depan.java.bytecode.impl.MethodDepLister.java

/**
 * Implements a visitor of the ASM package, to find the dependencies in a method
 * and build the dependency tree. A single {@link MethodDepLister} is used for
 * each method found in a class.
 * 
 * To build the dependencies tree, it calls the methods of a

From source file com.google.gwt.dev.javac.asm.CollectMethodData.java

/**
 * Collects data from a single method.
 */
public class CollectMethodData extends MethodVisitor {

    private static final String[] EMPTY_STRING_ARRAY = new String[0];

From source file com.google.monitoring.runtime.instrumentation.adapters.AllocationMethodAdapter.java

/**
 * A <code>MethodVisitor</code> that instruments all heap allocation bytecodes
 * to record the allocation being done for profiling.
 * Instruments bytecodes that allocateString heap memory to call a recording hook.
 *
 * @author Ami Fischman

From source file com.google.monitoring.runtime.instrumentation.adapters.EscapeMethodAdapter.java

/**
 * A <code>MethodVisitor</code> that instruments all heap allocation bytecodes
 * to record the allocation being done for profiling.
 * Instruments bytecodes that allocateString heap memory to call a recording hook.
 *
 * @author Ami Fischman

From source file com.google.template.soy.jbcsrc.CodeBuilder.java

/**
 * A {@link MethodVisitor} that acts as a substitute for {@link GeneratorAdapter}.
 * 
 * <p>{@link GeneratorAdapter} has lots of convient methods (like 
 * {@link GeneratorAdapter#push(int)}), however it is a subtype of {@link LocalVariablesSorter} 
 * which automatically renumbers local variables.  This is actually fine (i think), but the problem

From source file com.google.template.soy.jbcsrc.restricted.CodeBuilder.java

/**
 * A {@link MethodVisitor} that acts as a substitute for {@link GeneratorAdapter}.
 *
 * <p>{@link GeneratorAdapter} has lots of convenient methods (like {@link
 * GeneratorAdapter#push(int)}), however it is a subtype of {@link LocalVariablesSorter} which
 * automatically renumbers local variables. This is actually fine (i think), but the problem is that

From source file com.googlecode.d2j.asm.LdcOptimizeAdapter.java

/**
 * @author <a href="mailto:pxb1988@gmail.com">Panxiaobo</a>
 * @version $Rev$
 */
public class LdcOptimizeAdapter extends MethodVisitor implements Opcodes {

From source file com.googlecode.japi.checker.MethodDumper.java

public class MethodDumper extends MethodVisitor {
    private Logger logger = Logger.getLogger(MethodDumper.class.getName());
    private final MethodData method;

    public MethodDumper(MethodData method) {
        super(Opcodes.ASM4);