AnnotationInformation<T extends Element> class

Manages an annotation giving straight forward error handling behaviour.

Users who want to ignore errors, skipping bad annotations, will call the is* getters directly. This class will issue one warning to the exception
handler.

Users who want to fail on bad annotations can check hasErrors and then report errors directly to their exception handlers. In this case, this class will not issue warnings to the exception handler.

Inheritance

Constructors

AnnotationInformation(T element, ElementAnnotation annotation, int annotationIndex, ComponentVisitorExceptionHandler _exceptionHandler)

Properties

annotation → ElementAnnotation
finalinherited
annotationIndex int
finalinherited
constantEvaluationErrors List<AnalysisError>
final
constantValue → DartObject?
final
element → T
finalinherited
hasErrors bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isComponent bool
no setter
isContentType bool
no setter
isInputType bool
no setter
isOutputType bool
no setter
isViewType bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sentWarning bool
getter/setter pair

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