ElementVisitor<R> class
abstract
An object that can be used to visit an element structure.
Clients may not extend, implement or mix-in this class. There are classes
that implement this interface that provide useful default behaviors in
package:analyzer/dart/element/visitor.dart
. A couple of the most useful
include
- SimpleElementVisitor which implements every visit method by doing nothing,
- RecursiveElementVisitor which will cause every node in a structure to be visited, and
- ThrowingElementVisitor which implements every visit method by throwing an exception.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
visitClassElement(
ClassElement element) → R? -
visitCompilationUnitElement(
CompilationUnitElement element) → R? -
visitConstructorElement(
ConstructorElement element) → R? -
visitEnumElement(
EnumElement element) → R? -
visitExtensionElement(
ExtensionElement element) → R? -
visitExtensionTypeElement(
ExtensionTypeElement element) → R? -
visitFieldElement(
FieldElement element) → R? -
visitFieldFormalParameterElement(
FieldFormalParameterElement element) → R? -
visitFunctionElement(
FunctionElement element) → R? -
visitGenericFunctionTypeElement(
GenericFunctionTypeElement element) → R? -
visitLabelElement(
LabelElement element) → R? -
visitLibraryElement(
LibraryElement element) → R? -
visitLibraryExportElement(
LibraryExportElement element) → R? -
visitLibraryImportElement(
LibraryImportElement element) → R? -
visitLocalVariableElement(
LocalVariableElement element) → R? -
visitMethodElement(
MethodElement element) → R? -
visitMixinElement(
MixinElement element) → R? -
visitMultiplyDefinedElement(
MultiplyDefinedElement element) → R? -
visitParameterElement(
ParameterElement element) → R? -
visitPartElement(
PartElement element) → R? -
visitPrefixElement(
PrefixElement element) → R? -
visitPropertyAccessorElement(
PropertyAccessorElement element) → R? -
visitSuperFormalParameterElement(
SuperFormalParameterElement element) → R? -
visitTopLevelVariableElement(
TopLevelVariableElement element) → R? -
visitTypeAliasElement(
TypeAliasElement element) → R? -
visitTypeParameterElement(
TypeParameterElement element) → R?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited