Enum ClassInfo.NestingType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ClassInfo.NestingType>
    Enclosing class:
    ClassInfo

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

      Enum Constants 
      Enum Constant Description
      ANONYMOUS
      An unnamed class enclosed within a code block
      INNER
      A named class enclosed by another class
      LOCAL
      A named class enclosed within a code block
      TOP_LEVEL
      A standard class declared within its own source unit
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NestingType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ClassInfo.NestingType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ClassInfo.NestingType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NestingType

        private NestingType()
    • Method Detail

      • values

        public static ClassInfo.NestingType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClassInfo.NestingType c : ClassInfo.NestingType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClassInfo.NestingType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null