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 org.apache.drill.exec.compile.bytecode.AloadPopRemover.java

/**
 * Remove any adjacent ALOAD-POP instruction pairs.
 *
 * The Janino compiler generates an instruction stream where it will ALOAD a
 * holder's objectref, and then immediately POP it because the compiler has
 * recognized that the method call that it loaded the objectref for is static

From source file org.apache.drill.exec.compile.bytecode.InstructionModifier.java

public class InstructionModifier extends MethodVisitor {
    static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(InstructionModifier.class);

    private final IntObjectOpenHashMap<ValueHolderIden.ValueHolderSub> oldToNew = new IntObjectOpenHashMap<>();
    private final IntIntOpenHashMap oldLocalToFirst = new IntIntOpenHashMap();

From source file org.apache.drill.exec.compile.CheckMethodVisitorFsm.java

/**
 * A MethodVisitor that verifies the required call sequence according to
 * http://asm.ow2.org/asm50/javadoc/user/org/objectweb/asm/MethodVisitor.html .
 *
 * <p>
 * There is no CheckAnnotationVisitorFsm at this time.

From source file org.apache.drill.exec.compile.DrillInitMethodVisitor.java

public class DrillInitMethodVisitor extends MethodVisitor {
    static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(DrillInitMethodVisitor.class);

    final String className;

    public DrillInitMethodVisitor(String className, MethodVisitor mv) {

From source file org.apache.felix.ipojo.manipulator.metadata.annotation.MethodMetadataCollector.java

/**
 * @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
 */
public class MethodMetadataCollector extends MethodVisitor {

    /**

From source file org.conqat.engine.java.fingerprinting.HashingMethodVisitor.java

/**
 * A visitor that creates a hash value of the method's byte-code (omitting some
 * parts, such as comments and names of local variables). The hash value is
 * appended on a provided ConQAT node.
 * 
 * @author $Author: heineman $

From source file org.copperengine.core.instrument.BuildStackInfoAdapter.java

public class BuildStackInfoAdapter extends MethodVisitor implements Opcodes, ByteCodeStackInfo {

    static final Logger logger = LoggerFactory.getLogger(BuildStackInfoAdapter.class);

    static final Type retAddressType = Type.getObjectType("ReturnAddress");

From source file org.copperengine.core.instrument.NullMethodVisitor.java

public class NullMethodVisitor extends MethodVisitor implements Opcodes {

    public NullMethodVisitor() {
        super(ASM4);
    }

From source file org.copperengine.core.instrument.ScottyMethodAdapter.java

class ScottyMethodAdapter extends MethodVisitor implements Opcodes {

    public static final Set<String> waitMethods;

    static {
        waitMethods = new HashSet<String>();

From source file org.decojer.cavaj.readers.asm.ReadMethodVisitor.java

/**
 * ASM read method visitor.
 *
 * @author Andr Pankraz
 */
@Slf4j