Enum ClassInfo.RelType

java.lang.Object
java.lang.Enum<ClassInfo.RelType>
io.github.classgraph.ClassInfo.RelType
All Implemented Interfaces:
Serializable, Comparable<ClassInfo.RelType>, java.lang.constant.Constable
Enclosing class:
ClassInfo

static enum ClassInfo.RelType extends Enum<ClassInfo.RelType>
How classes are related.
  • Enum Constant Details

    • SUPERCLASSES

      public static final ClassInfo.RelType SUPERCLASSES
      Superclasses of this class, if this is a regular class.

      (Should consist of only one entry, or null if superclass is java.lang.Object or unknown).

    • SUBCLASSES

      public static final ClassInfo.RelType SUBCLASSES
      Subclasses of this class, if this is a regular class.
    • CONTAINS_INNER_CLASS

      public static final ClassInfo.RelType CONTAINS_INNER_CLASS
      Indicates that an inner class is contained within this one.
    • CONTAINED_WITHIN_OUTER_CLASS

      public static final ClassInfo.RelType CONTAINED_WITHIN_OUTER_CLASS
      Indicates that an outer class contains this one. (Should only have zero or one entries.)
    • IMPLEMENTED_INTERFACES

      public static final ClassInfo.RelType IMPLEMENTED_INTERFACES
      Interfaces that this class implements, if this is a regular class, or superinterfaces, if this is an interface.

      (May also include annotations, since annotations are interfaces, so you can implement an annotation.)

    • CLASSES_IMPLEMENTING

      public static final ClassInfo.RelType CLASSES_IMPLEMENTING
      Classes that implement this interface (including sub-interfaces), if this is an interface.
    • CLASS_ANNOTATIONS

      public static final ClassInfo.RelType CLASS_ANNOTATIONS
      Annotations on this class, if this is a regular class, or meta-annotations on this annotation, if this is an annotation.
    • CLASSES_WITH_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_ANNOTATION
      Classes annotated with this annotation, if this is an annotation.
    • METHOD_ANNOTATIONS

      public static final ClassInfo.RelType METHOD_ANNOTATIONS
      Annotations on one or more methods of this class.
    • CLASSES_WITH_METHOD_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_METHOD_ANNOTATION
      Classes that have one or more methods annotated with this annotation, if this is an annotation.
    • CLASSES_WITH_NONPRIVATE_METHOD_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_NONPRIVATE_METHOD_ANNOTATION
      Classes that have one or more non-private (inherited) methods annotated with this annotation, if this is an annotation.
    • METHOD_PARAMETER_ANNOTATIONS

      public static final ClassInfo.RelType METHOD_PARAMETER_ANNOTATIONS
      Annotations on one or more parameters of methods of this class.
    • CLASSES_WITH_METHOD_PARAMETER_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_METHOD_PARAMETER_ANNOTATION
      Classes that have one or more methods that have one or more parameters annotated with this annotation, if this is an annotation.
    • CLASSES_WITH_NONPRIVATE_METHOD_PARAMETER_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_NONPRIVATE_METHOD_PARAMETER_ANNOTATION
      Classes that have one or more non-private (inherited) methods that have one or more parameters annotated with this annotation, if this is an annotation.
    • FIELD_ANNOTATIONS

      public static final ClassInfo.RelType FIELD_ANNOTATIONS
      Annotations on one or more fields of this class.
    • CLASSES_WITH_FIELD_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_FIELD_ANNOTATION
      Classes that have one or more fields annotated with this annotation, if this is an annotation.
    • CLASSES_WITH_NONPRIVATE_FIELD_ANNOTATION

      public static final ClassInfo.RelType CLASSES_WITH_NONPRIVATE_FIELD_ANNOTATION
      Classes that have one or more non-private (inherited) fields annotated with this annotation, if this is an annotation.
  • Constructor Details

    • RelType

      private RelType()
  • Method Details

    • values

      public static ClassInfo.RelType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ClassInfo.RelType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null