Interface EnumType

All Superinterfaces:
ClassType, DeclaredType, ReferenceType, TypeMirror

public interface EnumType extends ClassType
Represents an enum type.
  • Method Details

    • getDeclaration

      EnumDeclaration getDeclaration()
      Returns the declaration of this type.

      Returns null if this type's declaration is unknown. This may be the result of a processing error, such as a missing class file.

      Specified by:
      getDeclaration in interface ClassType
      Specified by:
      getDeclaration in interface DeclaredType
      the declaration of this type, or null if unknown