| Modifier and Type | Class and Description |
|---|---|
| private static enum | ClassInfo.
The class type to return. |
| pack-priv static class | ClassInfo.
A set of classes that indirectly reachable through a directed path, for a given relationship type, and a set of classes that is directly related (only one relationship step away). |
| pack-priv static enum | ClassInfo.
How classes are related. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | ANNOTATION_CLASS_MODIFIER
The modifier bit for annotations. |
| pack-priv AnnotationParameterValueList | annotationDefaultParamValues
For annotations, the default values of parameters. |
| pack-priv transient boolean | annotationDefaultParamValuesHasBeenConvertedToPrimitive
Set to true once any Object[] arrays of boxed types in annotationDefaultParamValues have been lazily converted to primitive arrays. |
| pack-priv AnnotationInfoList | annotationInfo
Info on class annotations, including optional annotation param values. |
| private AnnotationInfoList | annotationInfoRef
The annotation infos, once they are loaded |
| private ClassInfoList | annotationsRef
The annotations, once they are loaded |
| private int | classfileMajorVersion
The major version of the classfile format for this class' classfile. |
| private int | classfileMinorVersion
The minor version of the classfile format for this class' classfile. |
| protected transient Resource | classfileResource
The |
| pack-priv transient ClassLoader | classLoader
The classloader this class was obtained from. |
| pack-priv transient ClasspathElement | classpathElement
The classpath element that this class was found within. |
| pack-priv FieldInfoList | fieldInfo
Info on fields. |
| private String | fullyQualifiedDefiningMethodName
The fully-qualified defining method name, for anonymous inner classes. |
| protected boolean | isExternalClass
If true, this class is only being referenced by another class' classfile as a superclass / implemented interface / annotation, but this class is not itself an accepted (non-rejected) class, or in a accepted (non-rejected) package. |
| pack-priv boolean | isInherited
This annotation has the |
| private boolean | isRecord
True if the class is a record. |
| protected boolean | isScannedClass
Set to true when the class is actually scanned (as opposed to just referenced as a superclass, interface or annotation of a scanned class). |
| pack-priv MethodInfoList | methodInfo
Info on fields. |
| private transient List | methodOverrideOrder
The override order for a class' methods (base class, followed by superclasses, followed by interfaces). |
| private int | modifiers
Class modifier flags, e.g. Modifier.PUBLIC |
| pack-priv ModuleInfo | moduleInfo
Info on the class module. |
| protected String | name
The name of the class. |
| private static final ClassInfo. | NO_REACHABLE_CLASSES
The constant empty return value used when no classes are reachable. |
| private transient List | overrideOrder
The override order for a class' fields or methods (base class, followed by interfaces, followed by superclasses). |
| pack-priv PackageInfo | packageInfo
Info on the package containing the class. |
| private ClassInfoList | referencedClasses
A list of ClassInfo objects for classes referenced by this class. |
| private Set | referencedClassNames
Names of classes referenced by this class in class refs and type signatures in the constant pool of the classfile. |
| private Map | relatedClasses
The set of classes related to this one. |
| private String | sourceFile
The name of the source file this class has been compiled from |
| pack-priv transient List | typeAnnotationDecorators
The type annotation decorators for the |
| private transient ClassTypeSignature | typeDescriptor
The synthetic class type descriptor. |
| private transient ClassTypeSignature | typeSignature
The class type signature, parsed. |
| protected String | typeSignatureStr
The class type signature string. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addAnnotationParamDefaultValues(final AnnotationParameterValueList
the default param names and values, if this is an annotation paramNamesAndValues)Add annotation default values. |
| pack-priv void | addClassAnnotation(final AnnotationInfo
the class annotation info classAnnotationInfo, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo)Add an annotation to this class. |
| pack-priv static void | addClassContainment(final List<Classfile.
the class containment entries classContainmentEntries,the map from class name to class info classNameToClassInfo)Add class containment info. |
| pack-priv void | addFieldInfo(final FieldInfoList
the field info list fieldInfoList, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo)Add field info. |
| private void | addFieldOrMethodAnnotationInfo(final AnnotationInfoList
the annotation info list annotationInfoList, final boolean the is field isField, final int the field or method modifiers modifiers, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo)Add field or method annotation cross-links. |
| pack-priv void | addFullyQualifiedDefiningMethodName(final String
the fully qualified defining method name fullyQualifiedDefiningMethodName)Add containing method name, for anonymous inner classes. |
| pack-priv void | addImplementedInterface(final String
the interface name interfaceName, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo)Add an implemented interface to this class. |
| pack-priv void | addMethodInfo(final MethodInfoList
the method info list methodInfoList, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo)Add method info. |
| pack-priv void | addReferencedClassNames(final Set<String>
the referenced class names refdClassNames)Add names of classes referenced by this class. |
| pack-priv boolean | |
| pack-priv static ClassInfo | Returns: the class infothe class name className, final int the class modifiers classModifiers, final boolean true if this is an external class isExternalClass, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo, final ClasspathElement the classpath element classpathElement, final Resource the classfile resource classfileResource)Add a class that has just been scanned (as opposed to just referenced by a scanned class). |
| pack-priv void | addSuperclass(final String
the superclass name superclassName, final Map<String, ClassInfo> the map from class name to class info classNameToClassInfo)Add a superclass to this class. |
| pack-priv void | addTypeDecorators(final List<Classfile.
ClassTypeAnnotationDecorator instances.Add |
| public int | Returns: the comparison resultthe other object o)Implements java. Compare based on class name. |
| public boolean | Returns: Whether the objects were equal.the other object obj)Overrides java. Use class name for equals(). |
| public boolean | Returns: true if this class extends the superclass.A superclass. superclass)Checks if this class extends the superclass. |
| public boolean | Returns: true if this class extends the named superclass.The name of a superclass. superclassName)Checks if this class extends the named superclass. |
| private static Set | Returns: the filtered classes.the classes classes, final ScanSpec the scan spec scanSpec, final boolean If true, exclude class if it is external, if external classes are not enabled strictAccept, final ClassInfo.the class types classTypesFilter classes according to scan spec and class type. |
| private ClassInfo. | Returns: the reachable and directly related classesthe relationship type relType,If true, exclude class if it is external, if external classes are not enabled strictAccept, final ClassInfo.the class types to accept classTypesGet the classes related to this one (the transitive closure) for the given relationship type, and those directly related. |
| protected void | findReferencedClassInfo(final Map<String, ClassInfo>
the map from class name to classNameToClassInfo, final Set<ClassInfo> ClassInfo.the referenced class info refdClassInfo, final LogNode the log log)Overrides io. Get |
| pack-priv static ClassInfoList | Returns: A list of all annotation classes found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all annotation classes found during the scan. |
| pack-priv static ClassInfoList | Returns: A list of all classes found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all classes found during the scan. |
| pack-priv static ClassInfoList | Returns: A list of allEnum classes found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all |
| pack-priv static ClassInfoList | Returns: A list of all annotation classes found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all implemented interface (non-annotation interface) classes found during the scan. |
| pack-priv static ClassInfoList | Returns: A list of all accepted interfaces found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all interface or annotation classes found during the scan. |
| pack-priv static ClassInfoList | Returns: A list of allrecord classes found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all |
| pack-priv static ClassInfoList | Returns: A list of all standard classes found during the scan, or the empty list if none.the classes classes, final ScanSpec the scan spec scanSpec)Get all standard classes found during the scan. |
| public AnnotationParameterValueList | Returns: A list ofAnnotationParameterValue objects for each of the default parameter values for this
annotation, if this is an annotation class with default parameter values, otherwise the empty list.Get the default parameter values for this annotation, if this is an annotation class. |
| public AnnotationInfoList | Returns: A list ofAnnotationInfo objects for the annotations on this class, or the empty list if
none.Get a list of the annotations on this class, or the empty list if none. |
| public AnnotationInfo | Returns: AnAnnotationInfo object representing the annotation on this class, or null if the class does
not have the annotation.The annotation. annotation)Get a the non- |
| public AnnotationInfo | Returns: AnAnnotationInfo object representing the named annotation on this class, or null if the
class does not have the named annotation.The annotation name. annotationName)Get a the named non- |
| public AnnotationInfoList | Returns: AnAnnotationInfoList of all instances of the annotation on this class, or the empty list if
the class does not have the annotation.The annotation. annotation)Get a the |
| public AnnotationInfoList | Returns: AnAnnotationInfoList of all instances of the named annotation on this class, or the empty
list if the class does not have the named annotation.The annotation name. annotationName)Get a the named |
| public ClassInfoList | Returns: the list of annotations and meta-annotations on this class.Get the annotations and meta-annotations on this class. |
| public ClassInfoList | Returns: AClassInfoList of ClassInfo objects for all classes referenced by this class. Note
that you need to call ClassGraph#enableInterClassDependencies() before
ClassGraph#scan() for this method to work. You should also call
ClassGraph#enableExternalClasses() before ClassGraph#scan() if you want non-accepted
classes to appear in the result.Get the class dependencies. |
| public ClassInfoList | Returns: the list of the classes (and their subclasses) that implement this interface, if this is an interface, otherwise returns the empty list.Get the classes (and their subclasses) that implement this interface, if this is an interface. |
| public ClassInfoList | Returns: A list of standard classes and non-annotation interfaces that are annotated by this class, if this is an annotation class, or the empty list if none. Also handles theInherited meta-annotation,
which causes an annotation on a class to be inherited by all of its subclasses.Get the classes that have this class as an annotation. |
| pack-priv ClassInfoList | Returns: The list of classes that are directly (i.e. are not meta-annotated) annotated with the requested annotation, or the empty list if none.Get the classes that have this class as a direct annotation. |
| public ClassInfoList | Returns: A list of classes that have a field with this annotation or meta-annotation, or the empty list if none.Get the classes that have this class as a field annotation or meta-annotation. |
| pack-priv ClassInfoList | Returns: A list of classes that declare fields that are directly annotated (i.e. are not meta-annotated) with the requested method annotation, or the empty list if none.Get the classes that have this class as a direct field annotation. |
| private ClassInfoList | Returns: A list of classes that have a declared method with this annotation or meta-annotation, or the empty list if none.One of relTypeRelType#CLASSES_WITH_FIELD_ANNOTATION,
RelType#CLASSES_WITH_NONPRIVATE_FIELD_ANNOTATION,
RelType#CLASSES_WITH_METHOD_ANNOTATION,
RelType#CLASSES_WITH_NONPRIVATE_METHOD_ANNOTATION,
RelType#CLASSES_WITH_METHOD_PARAMETER_ANNOTATION, or
RelType#CLASSES_WITH_NONPRIVATE_METHOD_PARAMETER_ANNOTATION.Get the classes that have this class as a field, method or method parameter annotation. |
| public ClassInfoList | Returns: A list of classes that have a declared method with this annotation or meta-annotation, or the empty list if none.Get all classes that have this class as a method annotation, and their subclasses, if the method is non-private. |
| pack-priv ClassInfoList | Returns: A list of classes that declare methods that are directly annotated (i.e. are not meta-annotated) with the requested method annotation, or the empty list if none.Get the classes that have this class as a direct method annotation. |
| public ClassInfoList | Returns: A list of classes that have a declared method with a parameter that is annotated with this annotation or meta-annotation, or the empty list if none.Get all classes that have this class as a method parameter annotation, and their subclasses, if the method is non-private. |
| pack-priv ClassInfoList | Returns: A list of classes that declare methods with parameters that are directly annotated (i.e. are not meta-annotated) with the requested method annotation, or the empty list if none.Get the classes that have this class as a direct method parameter annotation. |
| public int | Returns: The major version of the classfile format for this class' classfile, or 0 if thisClassInfo
object is a placeholder for a referenced class that was not found or not accepted during the scan.Get the major version of the classfile format for this class' classfile. |
| public int | Returns: The minor version of the classfile format for this class' classfile, or 0 if thisClassInfo
object is a placeholder for a referenced class that was not found or not accepted during the scan.Get the minor version of the classfile format for this class' classfile. |
| protected ClassInfo | getClassInfo()
Overrides io. Get the |
| protected String | getClassName()
Implements abstract io. The name of the class (used by |
| public File | Returns: TheFile for the classpath element package root dir or jar that this class was found within,
or null if this class was found in a module (see getModuleRef). May also return null if the
classpath element was an http/https URL, and the jar was downloaded directly to RAM, rather than to a
temp file on disk (e.g. if the temp dir is not writeable).Get the |
| public URI | Returns: TheURI of the classpath element that this class was found within.Get the |
| public URL | Returns: TheURL of the classpath element that this class was found within.Get the |
| public MethodInfoList | Returns: the list ofMethodInfo objects for visible constructors of this class and its superclasses,
or the empty list if no methods were found.Returns information on visible constructors declared by this class, or by its interfaces or superclasses. |
| public MethodInfoList | Returns: the list ofMethodInfo objects for visible constructors declared by this class, or the empty
list if no constructors were found or visible.Returns information on visible constructors declared by this class, but not by its interfaces or superclasses. |
| public FieldInfoList | Returns: the list of FieldInfo objects for visible fields declared by this class, or the empty list if no fields were found or visible.Returns information on all visible fields declared by this class, but not by its superclasses. |
| public FieldInfo | Returns: theFieldInfo object for the named field declared by this class, or null if the field was not
found in this class (or is not visible).The field name. fieldName)Returns information on the named field declared by the class, but not by its superclasses. |
| public MethodInfoList | Returns: the list ofMethodInfo objects for visible methods and constructors of this class, or the
empty list if no methods or constructors were found or visible.Returns information on visible methods and constructors declared by this class, but not by its interfaces or superclasses. |
| private MethodInfoList | Returns: the declared method infothe method name methodName, final boolean whether to get normal methods getNormalMethods, final boolean whether to get constructor methods getConstructorMethods, final boolean whether to get static initializer methods getStaticInitializerMethods)Get the declared methods, constructors, and/or static initializer methods of the class. |
| public MethodInfoList | Returns: the list ofMethodInfo objects for visible methods declared by this class, or the empty list
if no methods were found.Returns information on visible methods declared by this class, but not by its interfaces or superclasses, that are not constructors. |
| public MethodInfoList | Returns: a list ofMethodInfo objects for the method(s) with the given name, or the empty list if the
method was not found in this class (or is not visible).The method name to query. methodName)Returns information on the method(s) or constructor(s) of the given name declared by this class, but not by its interfaces or superclasses. |
| public List | Returns: All enum constants of an enum class as a list of objects of the same type as the enum.
|
| public FieldInfoList | Returns: All enum constants of an enum class as a list ofFieldInfo objects (enum constants are stored
as fields in Java classes).
|
| public ClassInfoList | Returns: A list of all annotations on fields of this class, or the empty list if none. N.B. these annotations do not contain specific annotation parameters -- callFieldInfo#getAnnotationInfo() to get
details on specific field annotation instances.Get all field annotations. |
| public FieldInfoList | Returns: the list of FieldInfo objects for visible fields of this class or its superclases, or the empty list if no fields were found or visible.Returns information on all visible fields declared by this class, or by its superclasses. |
| public FieldInfo | Returns: theFieldInfo object for the named field of this class or its superclases, or the empty list
if no fields were found or visible.The field name. fieldName)Returns information on the named filed declared by this class, or by its superclasses. |
| private ClassInfoList | Returns: A list of annotations or meta-annotations on fields or methods declared by the class, (not including fields or methods declared by the interfaces or superclasses of this class), as a list ofClassInfo objects, or the empty list if none.Get the annotations or meta-annotations on fields, methods or method parametres declared by the class, (not including fields, methods or method parameters declared by the interfaces or superclasses of this class). |
| private List | Returns: the override ordervisited visited, final List<ClassInfo> the override order overrideOrderOut)Recurse to interfaces and superclasses to get the order that fields are overridden in. |
| private List | Returns: the override orderGet the order that fields are overridden in (base class first). |
| public String | Returns: The fully-qualified method name (i.e. fully qualified classname, followed by dot, followed by method name) for the defining method, if this is an anonymous inner class, or null if not.Gets fully-qualified method name (i.e. fully qualified classname, followed by dot, followed by method name) for the defining method, if this is an anonymous inner class. |
| public ClassInfoList | Returns: A list of the inner classes contained within this class, or the empty list if none.Get the inner classes contained within this class, if this is an outer class. |
| public ClassInfoList | Returns: The list of interfaces implemented by this class or by one of its superclasses, if this is a standard class, or the superinterfaces extended by this interface, if this is an interface. Returns the empty list if none.Get the interfaces implemented by this class or by one of its superclasses, if this is a standard class, or the superinterfaces extended by this interface, if this is an interface. |
| public MethodInfoList | Returns: the list ofMethodInfo objects for visible methods and constructors of this class, its
interfaces and superclasses, or the empty list if no methods were found.Returns information on visible constructors declared by this class, or by its interfaces or superclasses. |
| public ClassInfoList | Returns: A list of all annotations or meta-annotations on methods declared by the class, (not including methods declared by the interfaces or superclasses of this class), as a list ofClassInfo
objects, or the empty list if none. N.B. these annotations do not contain specific annotation
parameters -- call MethodInfo#getAnnotationInfo() to get details on specific method
annotation instances.Get all method annotations. |
| private MethodInfoList | Returns: the method infothe method name methodName, final boolean whether to get normal methods getNormalMethods, final boolean whether to get constructor methods getConstructorMethods, final boolean whether to get static initializer methods getStaticInitializerMethods)Get the methods, constructors, and/or static initializer methods of the class. |
| public MethodInfoList | Returns: the list ofMethodInfo objects for visible methods of this class, its interfaces and
superclasses, or the empty list if no methods were found.Returns information on visible methods declared by this class, or by its interfaces or superclasses, that are not constructors. |
| public MethodInfoList | Returns: a list ofMethodInfo objects for the method(s) with the given name, or the empty list if the
method was not found in this class (or is not visible).The method name to query. methodName)Returns information on the method(s) or constructor(s) of the given name declared by this class, but not by its interfaces or superclasses. |
| private List | Returns: the overrideOrderOut instancenon-null set of already visited ClassInfos visited, final List<ClassInfo> non-null outgoing list of ClassInfos in descending override order. overrideOrderOut)Recurse to collect classes and interfaces in the order of overridden methods, in descending priority. |
| private List | |
| public ClassInfoList | Returns: A list of all annotations or meta-annotations on methods declared by the class, (not including methods declared by the interfaces or superclasses of this class), as a list ofClassInfo
objects, or the empty list if none. N.B. these annotations do not contain specific annotation
parameters -- call MethodInfo#getAnnotationInfo() to get details on specific method
annotation instances.Get all method parameter annotations. |
| public int | |
| public String | Returns: The field modifiers as a string, e.g. "public static final". For the modifier bits, callgetModifiers().Get the class modifiers as a String. |
| public ModuleInfo | Returns: theModuleInfo object for the class, or null if the class is not part of a named module.Get the |
| public ModuleRef | Returns: The module that this class was found within, as aModuleRef, or null if this class was found
in a directory or jar in the classpath. (See also getClasspathElementFile().)Get the module that this class was found within, as a |
| public String | Returns: The name of the class.Implements io. Get the name of the class. |
| pack-priv static ClassInfo | |
| public ClassInfoList | Returns: A list of the containing outer classes, if this is an inner class, otherwise the empty list. Note that all containing outer classes are returned, not just the innermost of the containing outer classes.Get the containing outer classes, if this is an inner class. |
| public PackageInfo | Returns: thePackageInfo object for the package that contains the class.Get the |
| public String | |
| public Resource | Returns: TheResource for the classfile of this class. Returns null if the classfile for this class
was not actually read during the scan, e.g. because this class was not itself accepted, but was
referenced by an accepted class.The |
| pack-priv static String | Returns: The simple name of the class.the class name className)Get simple name from fully-qualified class name. |
| public String | |
| public String | Returns: The name of the source file of this class, ornull if not availableReturns the name of the source file this class has been compiled from, such as |
| public ClassInfoList | Returns: the list of subclasses of this class, or the empty list if none.Get the subclasses of this class, sorted in order of name. |
| public ClassInfo | Returns: the superclass of this class, or null if none.Get the single direct superclass of this class, or null if none. |
| public ClassInfoList | Returns: the list of all superclasses of this class, or the empty list if none.Get all superclasses of this class, in ascending order in the class hierarchy, not including |
| public ClassTypeSignature | Returns: The synthetic type descriptor for the class.Returns a synthetic type descriptor for the method, created from the class name, superclass name, and implemented interfaces. |
| public ClassTypeSignature | Returns: The parsed type signature for the class, including any generic type parameters, or null if not available (probably indicating the class is not generic).Get the parsed type signature for the class. |
| public ClassTypeSignature | Returns: The parsed generic type signature for the class, or if not available, the synthetic type descriptor for the class.Returns the parsed type signature for this class, possibly including type parameters. |
| public String | Returns: The type signature string for the class, including any generic type parameters, or null if not available (probably indicating the class is not generic).Get the type signature string for the class. |
| pack-priv void | handleRepeatableAnnotations(final Set<String>
the names of all repeatable annotations allRepeatableAnnotationNames)Handle |
| public boolean | Returns: true if this class has the annotation.An annotation. annotation)Checks whether this class has the annotation. |
| public boolean | Returns: true if this class has the named annotation.The name of an annotation. annotationName)Checks whether this class has the named annotation. |
| public boolean | Returns: true if this class declares a field of the given name.The name of a field. fieldName)Checks whether this class has the named declared field. |
| public boolean | Returns: true if this class declares a field with the annotation.A field annotation. annotation)Checks whether this class declares a field with the annotation. |
| public boolean | Returns: true if this class declares a field with the named annotation.The name of a field annotation. fieldAnnotationName)Checks whether this class declares a field with the named annotation. |
| public boolean | Returns: true if this class declares a method of the given name.The name of a method. methodName)Checks whether this class declares a method of the given name. |
| public boolean | Returns: true if this class declares a method with the annotation.A method annotation. methodAnnotation)Checks whether this class declares a method with the annotation. |
| public boolean | Returns: true if this class declares a method with the named annotation.The name of a method annotation. methodAnnotationName)Checks whether this class declares a method with the named annotation. |
| public boolean | Returns: true if this class declares a method with the annotation.A method annotation. methodParameterAnnotation)Checks whether this class declares a method with the annotation. |
| public boolean | Returns: true if this class declares a method with the named annotation.The name of a method annotation. methodParameterAnnotationName)Checks whether this class declares a method with the named annotation. |
| public boolean | |
| public boolean | Returns: true if this class or one of its superclasses declares a field with the annotation.A field annotation. fieldAnnotation)Checks whether this class or one of its superclasses declares a field with the annotation. |
| public boolean | Returns: true if this class or one of its superclasses declares a field with the named annotation.The name of a field annotation. fieldAnnotationName)Checks whether this class or one of its superclasses declares a field with the named annotation. |
| public int | |
| public boolean | |
| public boolean | Returns: true if this class or one of its superclasses or interfaces declares a method with the annotation.A method annotation. methodAnnotation)Checks whether this class or one of its superclasses or interfaces declares a method with the annotation. |
| public boolean | Returns: true if this class or one of its superclasses or interfaces declares a method with the named annotation.The name of a method annotation. methodAnnotationName)Checks whether this class or one of its superclasses or interfaces declares a method with the named annotation. |
| public boolean | Returns: true if this class or one of its superclasses or interfaces has a method with the annotation.A method annotation. methodParameterAnnotation)Checks whether this class or one of its superclasses or interfaces has a method with the annotation. |
| public boolean | Returns: true if this class or one of its superclasses or interfaces has a method with the named annotation.The name of a method annotation. methodParameterAnnotationName)Checks whether this class or one of its superclasses or interfaces has a method with the named annotation. |
| public boolean | Returns: true if this class implements the interface.An interface. interfaceClazz)Checks whether this class implements the interface. |
| public boolean | Returns: true if this class implements the named interface.The name of an interface. interfaceName)Checks whether this class implements the named interface. |
| public boolean | |
| public boolean | Returns: true if this class is an annotation class.Checks if the class is an annotation. |
| public boolean | Returns: true if this is an anonymous inner class. If true, the name of the containing method can be obtained by callinggetFullyQualifiedDefiningMethodName().Checks if this class is an anonymous inner class. |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if this class is an external class, i.e. was referenced by an accepted class as a superclass, interface, or annotation, but is not itself an accepted class.Checks if this is an external class. |
| public boolean | |
| public boolean | Returns: true if this class is an implemented interface.Checks whether this class is an implemented interface (meaning a standard, non-annotation interface, or an annotation that has also been implemented as an interface by some class). |
| public boolean | Returns: true if this is an inner class (callisAnonymousInnerClass() to test if this is an anonymous
inner class). If true, the containing class can be determined by calling getOuterClasses().Checks if this class is an inner class. |
| public boolean | Returns: true if this class is an interface and is not an annotation (annotations are interfaces, and can be implemented).Checks if is the class an interface and is not an annotation. |
| public boolean | Returns: true if this class is an interface or an annotation (annotations are interfaces, and can be implemented).Checks if is an interface or an annotation. |
| public boolean | Returns: true if this class contains inner classes. If true, the inner classes can be determined by callinggetInnerClasses().Checks if this class is an outer class. |
| public boolean | Returns: true if this class is only visible within its package.Checks if the class has default (package) visibility. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if this class is a standard class (i.e. is not an annotation or interface).Checks if this class is a standard class. |
| public boolean | |
| public boolean | |
| public < the superclass or interface type T> Class | Returns: The class reference, or null, if ignoreExceptions is true and there was an exception or error loading the class.The superclassOrInterfaceType, final boolean Class reference for the type to cast the loaded class to.If true, return null if any exceptions or errors thrown during classloading, or if attempting to
cast the resulting ignoreExceptions)Class<?> reference to the requested superclass or interface type fails.
If false, IllegalArgumentException is thrown if the class could not be loaded or could not
be cast to the requested type.Overrides io. Obtain a |
| public < The superclass or interface type T> Class | Returns: The class reference.The type to cast the loaded class to. superclassOrInterfaceType)Overrides io. Obtain a |
| public Class | Returns: The class reference, or null, if ignoreExceptions is true and there was an exception or error loading the class.Whether or not to ignore exceptions ignoreExceptions)Overrides io. Obtain a |
| public Class | Returns: The class reference.Overrides io. Obtain a |
| pack-priv void | setClassfileVersion(final int
the minor version of the classfile format for this class' classfile. minorVersion, final int the major version of the classfile format for this class' classfile. majorVersion)Set classfile version. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | setReferencedClasses(final ClassInfoList
the referenced classes refdClasses)Set the list of ClassInfo objects for classes referenced by this class. |
| pack-priv void | setScanResult(final ScanResult
the scan result scanResult)Overrides io. Set ScanResult backreferences in info objects after scan has completed. |
| pack-priv void | |
| pack-priv void | setTypeSignature(final String
the type signature str typeSignatureStr)Set the class type signature, including any type params. |
| protected void | toString(final boolean
use simple names useSimpleNames, final StringBuilder the buf buf)Implements abstract io. To string. |