ExtractMethodFeedback class

Feedback class for the EXTRACT_METHOD refactoring.

Inheritance

Constructors

ExtractMethodFeedback(int offset, int length, String returnType, List<String> names, bool canCreateGetter, List<RefactoringMethodParameter> parameters, List<int> offsets, List<int> lengths)

Properties

canCreateGetter bool
True if a getter could be created rather than a method.
final
hashCode int
The hash code for this object.
no setterinherited
length int
The length of the expression or statements that will be extracted.
final
lengths List<int>
The lengths of the expressions or statements that would be replaced by an invocation of the method. The lengths correspond to the offsets. In other words, for a given expression (or block of statements), if the offset of that expression is offsets[i], then the length of that expression is lengths[i].
final
names List<String>
The proposed names for the method.
final
offset int
The offset to the beginning of the expression or statements that will be extracted.
final
offsets List<int>
The offsets of the expressions or statements that would be replaced by an invocation of the method.
final
parameters List<RefactoringMethodParameter>
The proposed parameters for the method.
final
returnType String
The proposed return type for the method. If the returned element does not have a declared return type, this field will contain an empty string.
final
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

Operators

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

Static Methods

parse(Map m) ExtractMethodFeedback
override