mockit.asm.SignatureWriter Maven / Gradle / Ivy
package mockit.asm;
import edu.umd.cs.findbugs.annotations.NonNull;
import mockit.asm.constantPool.AttributeWriter;
import mockit.asm.constantPool.ConstantPoolGeneration;
import mockit.asm.util.ByteVector;
import org.checkerframework.checker.index.qual.NonNegative;
public final class SignatureWriter extends AttributeWriter {
@NonNegative
private final int signatureIndex;
public SignatureWriter(@NonNull ConstantPoolGeneration cp, @NonNull String signature) {
super(cp, "Signature");
signatureIndex = cp.newUTF8(signature);
}
@NonNegative
@Override
public int getSize() {
return 8;
}
@Override
public void put(@NonNull ByteVector out) {
super.put(out);
out.putShort(signatureIndex);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy