Data for a Java enum class.

interface EnumData {
    constants: Collection<string, EnumConstantData>;
    deprecation: null | DeprecationContent;
    description: null | NodeContent;
    entityType: "enum";
    fields: Collection<string, FieldData<null | InterfaceData>>;
    id: string;
    implements: Collection<string, ExternalEntityData | InterfaceData>;
    methods: Collection<string, MethodData<null | InterfaceData>>;
    name: string;
    package: PackageData;
    qualifiedName: string;
    signature: string;
    url: string;
}

Hierarchy (View Summary)

Properties

constants: Collection<string, EnumConstantData>

The enum's constants, in their ordinal order, keyed by their EnumConstantData#name.

deprecation: null | DeprecationContent

The enum's deprecation notice, if any.

This property is always present if the enum is deprecated, regardless of whether it the notice any description or not.

description: null | NodeContent

The entity's description, if any.

entityType: "enum"

The entity's type.

fields: Collection<string, FieldData<null | InterfaceData>>

The enum's fields, keyed by their FieldData#name.

id: string

The entity's unique id (relative to others in the same context). Used as key in collections.

Specifically:

  • In classes, enums, interfaces, external objects and annotations: the qualifiedName.
  • In packages, enum constants, fields, method type parameters, object type parameters and parameters: the name.
  • In methods: the prototype, to avoid conflicts with overloaded methods.
implements: Collection<string, ExternalEntityData | InterfaceData>

The enum's implemented interfaces, keyed by their InterfaceData#qualifiedName (or ExternalEntityData#qualifiedName).

methods: Collection<string, MethodData<null | InterfaceData>>

The enum's methods, keyed by their MethodData#prototype.

name: string

The entity's name.

package: PackageData

The enum's package.

qualifiedName: string

The fully qualified name of the enum.

signature: string

The entity's signature.

url: string

The enum's Javadocs URL.