mockit.asm.classes.ClassInfo 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 mocking/faking APIs and a code coverage tool, supporting both JUnit and TestNG.
The mocking APIs allow all kinds of Java code, without testability restrictions, to be tested
in isolation from selected dependencies.
package mockit.asm.classes;
import javax.annotation.*;
/**
* Holds additional information about a classfile: {@link #signature}, {@link #superName}, {@link #interfaces}, {@link #hostClassName}.
*/
public final class ClassInfo
{
private static final String[] NO_INTERFACES = {};
/**
* The internal names of the class's interfaces, if any.
*/
@Nonnull public String[] interfaces = NO_INTERFACES;
/**
* The internal name of the super class. For interfaces, the super class is {@link Object}.
* Is null only for the {@link Object} class.
*/
@Nullable public String superName;
/**
* The generic signature of the class.
* Is null when the class is not a generic one, and does not extend or implement generic classes or interfaces.
*/
@Nullable public String signature;
/**
* The name of the source file from which the class was compiled, if available.
*/
@Nullable public String sourceFileName;
/**
* The internal name of the host class, if the class is part of a nest (Java 11+ only).
*/
@Nullable String hostClassName;
/**
* The names of the classes that are members of the nest defined by the nest host class, if any (Java 11+ only).
*/
@Nullable String[] nestMembers;
}