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;
}
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;
}
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;
}
Aggregations