Example usage for org.objectweb.asm Opcodes ASM5

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

Introduction

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

Prototype

int ASM5

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

Click Source Link

Usage

From source file:com.facebook.buck.java.abi.AnnotationValueMirror.java

License:Apache License

private AnnotationValueMirror(AnnotationMirror annotationValue) {
    super(Opcodes.ASM5);
    this.primitiveValue = null;
    this.enumValue = null;
    this.annotationValue = annotationValue;
    this.arrayValue = null;
}

From source file:com.facebook.buck.java.abi.AnnotationValueMirror.java

License:Apache License

private AnnotationValueMirror() {
    super(Opcodes.ASM5);
    this.primitiveValue = null;
    this.enumValue = null;
    this.annotationValue = null;
    this.arrayValue = new ArrayList<>();
}

From source file:com.facebook.buck.java.abi.ClassMirror.java

License:Apache License

public ClassMirror(String name) {
    super(Opcodes.ASM5);

    this.fileName = name;
    this.annotations = Sets.newTreeSet();
    this.fields = Sets.newTreeSet();
    this.innerClasses = Sets.newTreeSet();
    this.methods = Sets.newTreeSet();
}

From source file:com.facebook.buck.java.abi.FieldMirror.java

License:Apache License

public FieldMirror(int access, String name, String desc, String signature, Object value) {
    super(Opcodes.ASM5, access, name, desc, signature, value);

    this.key = name + desc + signature;
}

From source file:com.facebook.buck.java.abi.MethodMirror.java

License:Apache License

public MethodMirror(int access, String name, String desc, String signature, String[] exceptions) {
    super(Opcodes.ASM5);

    this.access = access;
    this.name = name;
    this.desc = Preconditions.checkNotNull(desc);
    this.signature = signature;
    this.exceptions = exceptions;

    this.annotations = Sets.newTreeSet();

    int paramCount = countParameters(desc);
    this.parameterAnnotations = new AnnotationMirror[paramCount];

    this.key = name + desc + paramCount;
}

From source file:com.facebook.buck.jvm.java.abi.AbiFilteringClassVisitor.java

License:Apache License

public AbiFilteringClassVisitor(ClassVisitor cv, @Nullable Set<String> referencedClassNames) {
    super(Opcodes.ASM5, cv);
    this.referencedClassNames = referencedClassNames;
}

From source file:com.facebook.buck.jvm.java.abi.AnnotationDefaultValueMirror.java

License:Apache License

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

From source file:com.facebook.buck.jvm.java.abi.ClassReferenceTracker.java

License:Apache License

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

From source file:com.facebook.buck.jvm.java.abi.ClassReferenceTracker.java

License:Apache License

public ClassReferenceTracker(ClassVisitor cv) {
    super(Opcodes.ASM5, cv);
}

From source file:com.facebook.buck.jvm.java.abi.DescriptorAndSignatureFactoryTestBase.java

License:Apache License

private ClassNode getClassNode(String classBinaryName) throws IOException {
    ClassNode classNode = new ClassNode(Opcodes.ASM5);
    testCompiler.getClasses().acceptClassVisitor(classBinaryName, 0, classNode);
    return classNode;
}