ElementAnnotation class abstract

A single annotation associated with an element.

Clients may not extend, implement or mix-in this class.

Constructors

ElementAnnotation()

Properties

constantEvaluationErrors List<AnalysisError>?
Return the errors that were produced while computing a value for this annotation, or null if no value has been computed. If a value has been produced but no errors were generated, then the list will be empty.
no setter
context → AnalysisContext
Return the AnalysisContext which should be used to evaluate this constant.
no setterinherited
element Element?
Return the element referenced by this annotation.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAlwaysThrows bool
Return true if this annotation marks the associated function as always throwing.
no setter
isConstantEvaluated bool
Return whether this constant is evaluated.
no setterinherited
isDeprecated bool
Return true if this annotation marks the associated element as being deprecated.
no setter
isDoNotStore bool
Return true if this annotation marks the associated element as not to be stored.
no setter
isFactory bool
Return true if this annotation marks the associated member as a factory.
no setter
isImmutable bool
Return true if this annotation marks the associated class and its subclasses as being immutable.
no setter
isInternal bool
Return true if this annotation marks the associated element as being internal to its package.
no setter
isIsTest bool
Return true if this annotation marks the associated member as running a single test.
no setter
isIsTestGroup bool
Return true if this annotation marks the associated member as running a test group.
no setter
isJS bool
Return true if this annotation marks the associated element with the JS annotation.
no setter
isLiteral bool
Return true if this annotation marks the associated constructor as being literal.
no setter
isMustBeOverridden bool
Return true if this annotation marks the associated member as requiring subclasses to override this member.
no setter
isMustCallSuper bool
Return true if this annotation marks the associated member as requiring overriding methods to call super.
no setter
isNonVirtual bool
Return true if this annotation marks the associated member as being non-virtual.
no setter
isOptionalTypeArgs bool
Return true if this annotation marks the associated type as having "optional" type arguments.
no setter
isOverride bool
Return true if this annotation marks the associated method as being expected to override an inherited method.
no setter
isProtected bool
Return true if this annotation marks the associated member as being protected.
no setter
isProxy bool
Return true if this annotation marks the associated class as implementing a proxy object.
no setter
isReopen bool
Return true if this annotation marks the associated member as being reopened.
no setter
isRequired bool
Return true if this annotation marks the associated member as being required.
no setter
isSealed bool
Return true if this annotation marks the associated class as being sealed.
no setter
isTarget bool
Return true if this annotation marks the associated class as being intended to be used as an annotation.
no setter
isUseResult bool
Return true if this annotation marks the associated returned element as requiring use.
no setter
isVisibleForOverriding bool
Return true if this annotation marks the associated member as being visible for overriding only.
no setter
isVisibleForTemplate bool
Return true if this annotation marks the associated member as being visible for template files.
no setter
isVisibleForTesting bool
Return true if this annotation marks the associated member as being visible for testing.
no setter
library LibraryElement?
The library with this constant.
no setterinherited
librarySource → Source?
If this target is associated with a library, return the source of the library's defining compilation unit; otherwise return null.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → Source?
Return the source associated with this target, or null if this target is not associated with a source.
no setterinherited

Methods

computeConstantValue() DartObject?
Return a representation of the value of this annotation, forcing the value to be computed if it had not previously been computed, or null if the value of this annotation could not be computed because of errors.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toSource() String
Return a textual description of this annotation in a form approximating valid source. The returned string will not be valid source primarily in the case where the annotation itself is not well-formed.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited