java.lang.Object
java.lang.Enum<ClassType>
org.matwoess.jsourceprofiler.tool.model.ClassType
All Implemented Interfaces:
Serializable, Comparable<ClassType>, Constable

public enum ClassType extends Enum<ClassType>
This enum is used to represent the locality type for a class definition.

It does not distinguish between class, interface, enum or record. Rather is differentiates between common top-level or nested classes and anonymous and local ones.

Used to correctly restore the previous block when exiting local or anonymous classes inside methods.

  • Enum Constant Details

    • CLASS

      public static final ClassType CLASS
    • ANONYMOUS

      public static final ClassType ANONYMOUS
    • LOCAL

      public static final ClassType LOCAL
  • Method Details

    • values

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

      public static ClassType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null