ElementKind class
The kind of elements in the element model.
Clients may not extend, implement or mix-in this class.
- Implemented types
Constructors
- ElementKind(String name, int ordinal, String displayName)
-
Initialize a newly created element kind to have the given
displayName
.const
Properties
- displayName → String
-
The name displayed in the UI for this kind of element.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
The name of this element kind.
final
- ordinal → int
-
The ordinal value of the element kind.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
ElementKind other) → int -
Compares this object to another object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
Element? element) → ElementKind -
Return the kind of the given
element
, or ERROR if the element isnull
. This is a utility method that can reduce the need for null checks in other places.
Constants
- CLASS → const ElementKind
- COMPILATION_UNIT → const ElementKind
- CONSTRUCTOR → const ElementKind
- DYNAMIC → const ElementKind
- ENUM → const ElementKind
- ERROR → const ElementKind
- EXPORT → const ElementKind
- EXTENSION → const ElementKind
- FIELD → const ElementKind
- FUNCTION → const ElementKind
- FUNCTION_TYPE_ALIAS → const ElementKind
- GENERIC_FUNCTION_TYPE → const ElementKind
- GETTER → const ElementKind
- IMPORT → const ElementKind
- LABEL → const ElementKind
- LIBRARY → const ElementKind
- LOCAL_VARIABLE → const ElementKind
- METHOD → const ElementKind
- NAME → const ElementKind
- NEVER → const ElementKind
- PARAMETER → const ElementKind
- PREFIX → const ElementKind
- SETTER → const ElementKind
- TOP_LEVEL_VARIABLE → const ElementKind
- TYPE_ALIAS → const ElementKind
- TYPE_PARAMETER → const ElementKind
- UNIVERSE → const ElementKind
-
values
→ const List<
ElementKind>