NameCategory

Context causes a name syntactically to fall into one of seven categories: ModuleName, PackageName, TypeName, ExpressionName, MethodName, PackageOrTypeName, or AmbiguousName. TypeName is less expressive than the other six categories, because it is denoted with TypeIdentifier, which excludes the character sequence var (§3.8).

See JLS 6.5 (https://docs.oracle.com/javase/specs/jls/se10/html/jls-6.html#jls-6.5)

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Is the given name acceptable for the given category?
Link copied to clipboard
Certain category include two or more unambiguous categories.
Link copied to clipboard
open fun isValid(): Boolean
Link copied to clipboard
open fun valueOf(name: String): NameCategory

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.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.