< prev index next >
src/java.compiler/share/classes/javax/lang/model/element/ElementKind.java
Print this page
@@ -44,20 +44,35 @@
PACKAGE,
// Declared types
/** An enum type. */
ENUM,
- /** A class not described by a more specific kind (like {@code ENUM}). */
+ /**
+ * A class not described by a more specific kind (like {@code
+ * ENUM} or {@code RECORD}).
+ */
CLASS,
+ /**
+ * A record type.
+ * @since 13
+ */
+ RECORD,
/** An annotation type. */
ANNOTATION_TYPE,
/**
* An interface not described by a more specific kind (like
* {@code ANNOTATION_TYPE}).
*/
INTERFACE,
+ // Neither fish nor fowl; necessary?
+ /**
+ * A state description of a {@code record}.
+ * @since 13
+ */
+ STATE_DESCRIPTION,
+
// Variables
/** An enum constant. */
ENUM_CONSTANT,
/**
* A field not described by a more specific kind (like
@@ -104,16 +119,16 @@
MODULE;
/**
* Returns {@code true} if this is a kind of class:
- * either {@code CLASS} or {@code ENUM}.
+ * either {@code CLASS} or {@code ENUM} or {@code RECORD}.
*
* @return {@code true} if this is a kind of class
*/
public boolean isClass() {
- return this == CLASS || this == ENUM;
+ return this == CLASS || this == ENUM || this == RECORD;
}
/**
* Returns {@code true} if this is a kind of interface:
* either {@code INTERFACE} or {@code ANNOTATION_TYPE}.
< prev index next >