Example usage for org.objectweb.asm Opcodes ASM4

List of usage examples for org.objectweb.asm Opcodes ASM4

Introduction

In this page you can find the example usage for org.objectweb.asm Opcodes ASM4.

Prototype

int ASM4

To view the source code for org.objectweb.asm Opcodes ASM4.

Click Source Link

Usage

From source file:StripVerifyingVisitor.java

License:Open Source License

public StripVerifyingVisitor() {
    super(Opcodes.ASM4);
}

From source file:allout58.mods.techtree.asm.CraftingContainerVisitor.java

License:Open Source License

public CraftingContainerVisitor(String name, ClassVisitor cv) {
    super(Opcodes.ASM4, cv);
    matcher = new MethodMatcher(name, "(Lnet/minecraft/inventory/IInventory;)V", "onCraftMatrixChanged",
            "func_75130_a");
}

From source file:allout58.mods.techtree.asm.CraftingPlayerVisitor.java

License:Open Source License

public CraftingPlayerVisitor(String name, ClassVisitor cv) {
    super(Opcodes.ASM4, cv);
    matcher = new MethodMatcher(name, "(Lnet/minecraft/inventory/IInventory;)V", "onCraftMatrixChanged",
            "func_75130_a");
}

From source file:analysis.RuntimeTemplateGenerator.java

License:Open Source License

private ClassVisitor getClassTransformer(ClassReference ref, ClassVisitor cv) {
    return new RuntimeClassTransformer(Opcodes.ASM4, cv, ref);
}

From source file:asmlib.EmptyClassVisitor.java

License:Open Source License

public EmptyClassVisitor() {
    super(Opcodes.ASM4);
}

From source file:asmlib.EmptyClassVisitor.java

License:Open Source License

@Override
public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
    class EmptyAnnotationVisitor extends AnnotationVisitor {
        EmptyAnnotationVisitor() {/*from ww w  . j  a  v a2  s .  co m*/
            super(Opcodes.ASM4);
        }

        @Override
        public AnnotationVisitor visitAnnotation(String name, String desc) {
            return this;
        }

        @Override
        public AnnotationVisitor visitArray(String name) {
            return this;
        }
    }

    return new EmptyAnnotationVisitor();
}

From source file:asmlib.EmptyFieldVisitor.java

License:Open Source License

public EmptyFieldVisitor() {
    super(Opcodes.ASM4);
}

From source file:asmlib.EmptyMethodVisitor.java

License:Open Source License

public EmptyMethodVisitor() {
    super(Opcodes.ASM4);
}

From source file:asmlib.extra.FixDeadTryCatchBlockMethodVisitor.java

License:Open Source License

public FixDeadTryCatchBlockMethodVisitor(int access, String name, String desc, String signature,
        String[] exceptions, ClassVisitor cv) {
    super(Opcodes.ASM4, cv.visitMethod(access, name, desc, signature, exceptions));
}

From source file:asmlib.extra.RemoveUnusedTryCatchBlockMethodVisitor.java

License:Open Source License

public RemoveUnusedTryCatchBlockMethodVisitor(int access, String name, String desc, String signature,
        String[] exceptions, ClassVisitor cv) {
    super(Opcodes.ASM4, cv.visitMethod(access, name, desc, signature, exceptions));
}