Enum ClassInfo.NestingType

java.lang.Object
java.lang.Enum<ClassInfo.NestingType>
org.jboss.jandex.ClassInfo.NestingType
All Implemented Interfaces:
Serializable, Comparable<ClassInfo.NestingType>, java.lang.constant.Constable
Enclosing class:
ClassInfo

public static enum ClassInfo.NestingType extends Enum<ClassInfo.NestingType>
Describes the form of nesting used by a class
  • Enum Constant Details

    • TOP_LEVEL

      public static final ClassInfo.NestingType TOP_LEVEL
      A standard class declared within its own source unit
    • INNER

      public static final ClassInfo.NestingType INNER
      A named class enclosed by another class
    • LOCAL

      public static final ClassInfo.NestingType LOCAL
      A named class enclosed within a code block
    • ANONYMOUS

      public static final ClassInfo.NestingType ANONYMOUS
      An unnamed class enclosed within a code block
  • Constructor Details

    • NestingType

      private NestingType()
  • Method Details

    • values

      public static ClassInfo.NestingType[] 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.NestingType 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