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.foxelbox.spigotpatcher.MethodPatcherVisitor.java

public abstract class MethodPatcherVisitor extends MethodVisitor {
    public MethodPatcherVisitor(int api, MethodVisitor methodVisitor) {
        super(api, methodVisitor);
    }

    protected abstract boolean checkMethodInsn(int opcode, String clazz, String name, String desc);

From source file com.gargoylesoftware.js.nashorn.internal.tools.nasgen.MethodGenerator.java

/**
 * Base class for all method generating classes.
 *
 */
public class MethodGenerator extends MethodVisitor {
    private final int access;

From source file com.github.bmsantos.core.cola.injector.ColaInjectableMethodVisitor.java

public class ColaInjectableMethodVisitor extends MethodVisitor implements Opcodes {

    public static final String PROCESSOR = "com/github/bmsantos/core/cola/story/processor/StoryProcessor";
    public static final String PROCESSOR_METHOD = "initColaInjector";
    public static final String PROCESSOR_SIG_TYPE = "(Ljava/lang/Object;)Lcom/google/inject/Injector;";

From source file com.github.cojac.FloatReplacerMethodVisitor.java

/**
 * There is a delegation chain in place for MethodVisitors:
 * MyLocalAdder                    adds two local variables
 *  -> FloatReplacerMethodVisitor  main bytecode transformation (with helper class FloatProxyMethod)
 *   -> FloatVariableSorter        remaps parameters index (due to the replacement of double (2 slots) as objects (1 slot))
 *    -> AnalyzerAdapter           keeps track of effective stack, so that we know the type of the top

From source file com.github.cojac.FloatVariablesSorter.java

/**
 * Remap the local variables indices for load & store instructions
 * The FloatVariablesSorter is used to remap the variables defined by the
 * parameters passing for method invocation 
 * It transforms: visitFrame(), visitVarInsn(), visitIinc(), visitLocalVariable()
 */

From source file com.github.fge.grappa.transform.hash.InstructionGroupHasher.java

/**
 * Hashing for an {@link InstructionGroup}
 *
 * <p>Not very pretty, that one.</p>
 *
 * <p>The only entry point, {@link #hash(InstructionGroup, String)}, will hash

From source file com.github.malamut2.low.AllocationMethodAdapter.java

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

From source file com.github.trohovsky.just.visitor.MethodDependenciesVisitor.java

/**
 * Visitor for collecting of method dependencies.
 * 
 * @author Tomas Rohovsky
 */
public class MethodDependenciesVisitor extends MethodVisitor {

From source file com.github.veithen.cosmos.osgi.runtime.RelocatingMethodVisitor.java

final class RelocatingMethodVisitor extends MethodVisitor {
    private final String from;
    private final String to;

    RelocatingMethodVisitor(MethodVisitor mv, String from, String to) {
        super(Opcodes.ASM6, mv);

From source file com.github.veithen.phos.enforcer.MethodProcessor.java

final class MethodProcessor extends MethodVisitor {
    private final ReferenceProcessor referenceProcessor;

    MethodProcessor(ReferenceProcessor referenceProcessor) {
        super(Opcodes.ASM5);
        this.referenceProcessor = referenceProcessor;