MCPcopy Index your code
hub / github.com/classgraph/classgraph / ClassInfo

Class ClassInfo

src/main/java/io/github/classgraph/ClassInfo.java:66–3508  ·  view source on GitHub ↗

Holds metadata about a class encountered during a scan.

Source from the content-addressed store, hash-verified

64
65/** Holds metadata about a class encountered during a scan. */
66public class ClassInfo extends ScanResultObject implements Comparable<ClassInfo>, HasName {
67 /** The name of the class. */
68 @Id
69 protected String name;
70
71 /** Class modifier flags, e.g. Modifier.PUBLIC */
72 private int modifiers;
73
74 /** True if the class is a record. */
75 private boolean isRecord;
76
77 /**
78 * This annotation has the {@link Inherited} meta-annotation, which means that any class that this annotation is
79 * applied to also implicitly causes the annotation to annotate all subclasses too.
80 */
81 boolean isInherited;
82
83 /** The minor version of the classfile format for this class' classfile. */
84 private int classfileMinorVersion;
85
86 /** The major version of the classfile format for this class' classfile. */
87 private int classfileMajorVersion;
88
89 /** The class type signature string. */
90 protected String typeSignatureStr;
91
92 /** The class type signature, parsed. */
93 private transient ClassTypeSignature typeSignature;
94
95 /** The synthetic class type descriptor. */
96 private transient ClassTypeSignature typeDescriptor;
97
98 /** The name of the source file this class has been compiled from */
99 private String sourceFile;
100
101 /** The fully-qualified defining method name, for anonymous inner classes. */
102 private String fullyQualifiedDefiningMethodName;
103
104 /**
105 * If true, this class is only being referenced by another class' classfile as a superclass / implemented
106 * interface / annotation, but this class is not itself an accepted (non-rejected) class, or in a accepted
107 * (non-rejected) package.
108 *
109 * If false, this classfile was matched during scanning (i.e. its classfile contents read), i.e. this class is a
110 * accepted (and non-rejected) class in an accepted (and non-rejected) package.
111 */
112 protected boolean isExternalClass = true;
113
114 /**
115 * Set to true when the class is actually scanned (as opposed to just referenced as a superclass, interface or
116 * annotation of a scanned class).
117 */
118 protected boolean isScannedClass;
119
120 /** The classpath element that this class was found within. */
121 transient ClasspathElement classpathElement;
122
123 /** The {@link Resource} for the classfile of this class. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…