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 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 edu.umd.cs.findbugs.annotations.Nullable;
/**
* 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;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy