Package Summary  Overview Summary

class:ElementKind [NONE]

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ElementKind>, java.lang.constant.Constable

    public enum ElementKind
    extends java.lang.Enum<ElementKind>
    The kind of an element.

    Note that it is possible additional element kinds will be added to accommodate new, currently unknown, language structures added to future versions of the Java™ programming language.

    Since:
    1.6
    See Also:
    Element

field:PACKAGE [NONE]

  • PACKAGE

    public static final ElementKind PACKAGE
    A package.

field:ENUM [NONE]

  • ENUM

    public static final ElementKind ENUM
    An enum type.

field:CLASS [CHANGED]

  • CLASS

    public static final ElementKind CLASS
    A class not described by a more specific kind (like ENUM or RECORD).
  • CLASS

    public static final ElementKind CLASS
    A class not described by a more specific kind (like ENUM).
  • CLASS

    public static final ElementKind CLASS
    A class not described by a more specific kind (like ENUM or RECORD).

field:ANNOTATION_TYPE [NONE]

  • ANNOTATION_TYPE

    public static final ElementKind ANNOTATION_TYPE
    An annotation type.

field:INTERFACE [NONE]

  • INTERFACE

    public static final ElementKind INTERFACE
    An interface not described by a more specific kind (like ANNOTATION_TYPE).

field:ENUM_CONSTANT [NONE]

  • ENUM_CONSTANT

    public static final ElementKind ENUM_CONSTANT
    An enum constant.

field:FIELD [NONE]

  • FIELD

    public static final ElementKind FIELD
    A field not described by a more specific kind (like ENUM_CONSTANT).

field:PARAMETER [NONE]

  • PARAMETER

    public static final ElementKind PARAMETER
    A parameter of a method or constructor.

field:LOCAL_VARIABLE [NONE]

  • LOCAL_VARIABLE

    public static final ElementKind LOCAL_VARIABLE
    A local variable.

field:EXCEPTION_PARAMETER [NONE]

  • EXCEPTION_PARAMETER

    public static final ElementKind EXCEPTION_PARAMETER
    A parameter of an exception handler.

field:METHOD [NONE]

  • METHOD

    public static final ElementKind METHOD
    A method.

field:CONSTRUCTOR [NONE]

  • CONSTRUCTOR

    public static final ElementKind CONSTRUCTOR
    A constructor.

field:STATIC_INIT [NONE]

  • STATIC_INIT

    public static final ElementKind STATIC_INIT
    A static initializer.

field:INSTANCE_INIT [NONE]

  • INSTANCE_INIT

    public static final ElementKind INSTANCE_INIT
    An instance initializer.

field:TYPE_PARAMETER [NONE]

  • TYPE_PARAMETER

    public static final ElementKind TYPE_PARAMETER
    A type parameter.

field:OTHER [NONE]

  • OTHER

    public static final ElementKind OTHER
    An implementation-reserved element. This is not the element you are looking for.

field:RESOURCE_VARIABLE [NONE]

  • RESOURCE_VARIABLE

    public static final ElementKind RESOURCE_VARIABLE
    A resource variable.
    Since:
    1.7

field:MODULE [NONE]

  • MODULE

    public static final ElementKind MODULE
    A module.
    Since:
    9

field:RECORD [ADDED]

  • RECORD

    public static final ElementKind RECORD
    
    A record type.
    Since:
    14

field:RECORD_COMPONENT [ADDED]

  • RECORD_COMPONENT

    public static final ElementKind RECORD_COMPONENT
    
    A record component of a record.
    Since:
    14

method:values() [NONE]

  • values

    public static ElementKind[] 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

method:valueOf(java.lang.String) [NONE]

  • valueOf

    public static ElementKind 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

method:isClass() [CHANGED]

  • isClass

    public boolean isClass()
    Returns true if this is a kind of class: either CLASS or ENUM or RECORD.
    Returns:
    true if this is a kind of class
  • isClass

    public boolean isClass()
    Returns true if this is a kind of class: either CLASS or ENUM.
    Returns:
    true if this is a kind of class
  • isClass

    public boolean isClass()
    Returns true if this is a kind of class: either CLASS or ENUM or RECORD.
    Returns:
    true if this is a kind of class

method:isInterface() [NONE]

  • isInterface

    public boolean isInterface()
    Returns true if this is a kind of interface: either INTERFACE or ANNOTATION_TYPE.
    Returns:
    true if this is a kind of interface

method:isField() [NONE]

  • isField

    public boolean isField()
    Returns true if this is a kind of field: either FIELD or ENUM_CONSTANT.
    Returns:
    true if this is a kind of field