Search in sources :

Example 6 with ByteVector

use of org.objectweb.asm.ByteVector in project openj9 by eclipse.

the class NestHostAttribute method write.

public ByteVector write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals) {
    int topclass_index = cw.newClass(nestHost);
    ByteVector b = new ByteVector();
    b.putShort(topclass_index);
    return b;
}
Also used : ByteVector(org.objectweb.asm.ByteVector)

Example 7 with ByteVector

use of org.objectweb.asm.ByteVector in project openj9 by eclipse.

the class NestMembersAttribute method write.

public ByteVector write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals) {
    ByteVector b = new ByteVector();
    b.putShort(nestMembers.length);
    for (int i = 0; i < nestMembers.length; i++) {
        int nestMemberIndex = cw.newClass(nestMembers[i]);
        b.putShort(nestMemberIndex);
    }
    return b;
}
Also used : ByteVector(org.objectweb.asm.ByteVector)

Example 8 with ByteVector

use of org.objectweb.asm.ByteVector in project openj9 by eclipse.

the class NestMembersAttribute method write.

public ByteVector write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals) {
    ByteVector b = new ByteVector();
    b.putShort(nestMembers.length);
    int nestMemberIndex;
    for (int i = 0; i < nestMembers.length; i++) {
        nestMemberIndex = cw.newClass(nestMembers[i]);
        b.putShort(nestMemberIndex);
    }
    return b;
}
Also used : ByteVector(org.objectweb.asm.ByteVector)

Aggregations

ByteVector (org.objectweb.asm.ByteVector)8 ClassWriter (org.objectweb.asm.ClassWriter)1 Attribute (soot.tagkit.Attribute)1