FieldsForClass<FieldAnnotation extends Object> class
abstract
Manages all fields of a ClassElement
. Generously borrowed from JSON Serializable
Constructors
- FieldsForClass({required ClassElement element})
Properties
- element → ClassElement
-
The annotated element
final
-
finder
→ AnnotationFinder<
FieldAnnotation> -
Searches for annotations on fields
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sorted
→ Iterable<
FieldElement> -
Returns a Set of all instance
FieldElement
items for element and super classes, sorted first by their location in the inheritance hierarchy (super first) and then by their location in the source file.no setter -
stableInstanceFields
→ Iterable<
FieldElement> -
ignore private,
static
, andFunction
fieldsno setter
Methods
-
annotationForField(
FieldElement element) → FieldAnnotation - Returns the annotation for a given field
-
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
Static Methods
-
isComputedGetter(
FieldElement field) → bool -
Returns
true
forint get name => 5