65 lines
1.6 KiB
Java
65 lines
1.6 KiB
Java
/*
|
|
* Decompiled with CFR 0.152.
|
|
*/
|
|
package com.tridium.asm;
|
|
|
|
import com.tridium.asm.Assembler;
|
|
import com.tridium.asm.Buffer;
|
|
|
|
/*
|
|
* Illegal identifiers - consider using --renameillegalidents true
|
|
*/
|
|
public class AttributeInfo {
|
|
private static byte[] EMPTY = new byte[0];
|
|
public final Assembler asm;
|
|
public final int name;
|
|
public byte[] info;
|
|
|
|
void compile(Buffer buffer) {
|
|
buffer.u2(this.name);
|
|
buffer.u4(this.info.length);
|
|
buffer.append(this.info);
|
|
}
|
|
|
|
private final /* synthetic */ void this() {
|
|
this.info = EMPTY;
|
|
}
|
|
|
|
public AttributeInfo(Assembler assembler, int n, byte[] byArray) {
|
|
this.this();
|
|
this.asm = assembler;
|
|
this.name = n;
|
|
this.info = byArray;
|
|
}
|
|
|
|
public AttributeInfo(Assembler assembler, String string, byte[] byArray) {
|
|
this.this();
|
|
this.asm = assembler;
|
|
this.name = assembler.cp.utf(string);
|
|
this.info = byArray;
|
|
}
|
|
|
|
public AttributeInfo(Assembler assembler, String string, String string2) {
|
|
this.this();
|
|
this.asm = assembler;
|
|
this.name = assembler.cp.utf(string);
|
|
int n = assembler.cp.utf(string2);
|
|
this.info = new byte[2];
|
|
this.info[0] = (byte)(n >>> 8 & 0xFF);
|
|
this.info[1] = (byte)(n & 0xFF);
|
|
}
|
|
|
|
public AttributeInfo(Assembler assembler, int n) {
|
|
this.this();
|
|
this.asm = assembler;
|
|
this.name = n;
|
|
}
|
|
|
|
public AttributeInfo(Assembler assembler, String string) {
|
|
this.this();
|
|
this.asm = assembler;
|
|
this.name = assembler.cp.utf(string);
|
|
}
|
|
}
|
|
|