IntrospectionPart enum
A part of an introspected class that a BeanIntrospection may leave out.
The generator writes only what the application uses of a class, as the
build can tell: a class that is only written out as JSON (a controller's
return type) gets its getters, one that is only read in (a request body)
its constructor and setters, and methods are described only where an
expression may call them. Annotations and the property list are always
there. Asking for a part that was left out throws an
IntrospectionPartError; @Introspected() on the class describes all
of them.
// A request body: created and filled, never read.
introspection.describesPart(IntrospectionPart.write); // true
introspection.describesPart(IntrospectionPart.read); // false
Spring (Java): no counterpart; reflection always sees everything.
Values
- read → const IntrospectionPart
-
The getters: the values of the properties can be read from an object (written as JSON, validated, read by an expression).
const IntrospectionPart('its getters') - write → const IntrospectionPart
-
The constructor,
instantiate, the setters andfromJson: objects can be created and filled (read from JSON, bound from a request or from configuration).const IntrospectionPart('its constructor and setters') - methods → const IntrospectionPart
-
The methods an expression may call.
const IntrospectionPart('its methods')
Properties
- description → String
-
The part in words, as error messages name it (
its getters).final - hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
IntrospectionPart> - A constant List of the values in this enum, in order of their declaration.