ElementVisitor2<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(
ClassElement2 element) → R? -
visitConstructorElement(
ConstructorElement2 element) → R? -
visitEnumElement(
EnumElement2 element) → R? -
visitExtensionElement(
ExtensionElement2 element) → R? -
visitExtensionTypeElement(
ExtensionTypeElement2 element) → R? -
visitFieldElement(
FieldElement2 element) → R? -
visitFieldFormalParameterElement(
FieldFormalParameterElement2 element) → R? -
visitFormalParameterElement(
FormalParameterElement element) → R? -
visitGenericFunctionTypeElement(
GenericFunctionTypeElement2 element) → R? -
visitGetterElement(
GetterElement element) → R? -
visitLabelElement(
LabelElement2 element) → R? -
visitLibraryElement(
LibraryElement2 element) → R? -
visitLocalFunctionElement(
LocalFunctionElement element) → R? -
visitLocalVariableElement(
LocalVariableElement2 element) → R? -
visitMethodElement(
MethodElement2 element) → R? -
visitMixinElement(
MixinElement2 element) → R? -
visitMultiplyDefinedElement(
MultiplyDefinedElement2 element) → R? -
visitPrefixElement(
PrefixElement2 element) → R? -
visitSetterElement(
SetterElement element) → R? -
visitSuperFormalParameterElement(
SuperFormalParameterElement2 element) → R? -
visitTopLevelFunctionElement(
TopLevelFunctionElement element) → R? -
visitTopLevelVariableElement(
TopLevelVariableElement2 element) → R? -
visitTypeAliasElement(
TypeAliasElement2 element) → R? -
visitTypeParameterElement(
TypeParameterElement2 element) → R?
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited