mockit.asm.classes.NestHostWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmockit Show documentation
Show all versions of jmockit Show documentation
JMockit is a Java toolkit for automated developer testing.
It contains APIs for the creation of the objects to be tested, for mocking dependencies, and for faking external
APIs; JUnit (4 & 5) and TestNG test runners are supported.
It also contains an advanced code coverage tool.
The newest version!
package mockit.asm.classes;
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;
final class NestHostWriter extends AttributeWriter {
@NonNegative
private final int hostClassNameIndex;
NestHostWriter(@NonNull ConstantPoolGeneration cp, @NonNull String hostClassName) {
super(cp, "NestHost");
hostClassNameIndex = cp.newClass(hostClassName);
}
@NonNegative
@Override
public int getSize() {
return 8;
}
@Override
public void put(@NonNull ByteVector out) {
super.put(out);
out.putShort(hostClassNameIndex);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy