@coverage dart.server.generated.types
Definition at line 30 of file RenameFeedback.java.
◆ RenameFeedback()
org.dartlang.analysis.server.protocol.RenameFeedback.RenameFeedback |
( |
int |
offset, |
|
|
int |
length, |
|
|
String |
elementKindName, |
|
|
String |
oldName |
|
) |
| |
|
inline |
Constructor for RenameFeedback
.
Definition at line 61 of file RenameFeedback.java.
61 {
62 this.offset = offset;
63 this.length = length;
64 this.elementKindName = elementKindName;
65 this.oldName = oldName;
66 }
◆ equals()
boolean org.dartlang.analysis.server.protocol.RenameFeedback.equals |
( |
Object |
obj | ) |
|
|
inline |
Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.
Definition at line 69 of file RenameFeedback.java.
69 {
72 return
73 other.offset == offset &&
74 other.length == length &&
75 ObjectUtilities.equals(other.elementKindName, elementKindName) &&
76 ObjectUtilities.equals(other.oldName, oldName);
77 }
78 return false;
79 }
RenameFeedback(int offset, int length, String elementKindName, String oldName)
◆ fromJson()
static RenameFeedback org.dartlang.analysis.server.protocol.RenameFeedback.fromJson |
( |
JsonObject |
jsonObject | ) |
|
|
inlinestatic |
◆ fromJsonArray()
static List< RenameFeedback > org.dartlang.analysis.server.protocol.RenameFeedback.fromJsonArray |
( |
JsonArray |
jsonArray | ) |
|
|
inlinestatic |
Definition at line 89 of file RenameFeedback.java.
89 {
90 if (jsonArray == null) {
92 }
93 ArrayList<RenameFeedback> list = new ArrayList<RenameFeedback>(jsonArray.size());
94 Iterator<JsonElement> iterator = jsonArray.iterator();
95 while (iterator.hasNext()) {
96 list.add(
fromJson(iterator.next().getAsJsonObject()));
97 }
98 return list;
99 }
static RenameFeedback fromJson(JsonObject jsonObject)
static final List< RenameFeedback > EMPTY_LIST
◆ getElementKindName()
String org.dartlang.analysis.server.protocol.RenameFeedback.getElementKindName |
( |
| ) |
|
|
inline |
The human-readable description of the kind of element being renamed (such as "class" or "function type alias").
Definition at line 105 of file RenameFeedback.java.
105 {
106 return elementKindName;
107 }
◆ getLength()
int org.dartlang.analysis.server.protocol.RenameFeedback.getLength |
( |
| ) |
|
|
inline |
The length of the name selected to be renamed.
Definition at line 112 of file RenameFeedback.java.
112 {
113 return length;
114 }
◆ getOffset()
int org.dartlang.analysis.server.protocol.RenameFeedback.getOffset |
( |
| ) |
|
|
inline |
The offset to the beginning of the name selected to be renamed, or -1 if the name does not exist yet.
Definition at line 120 of file RenameFeedback.java.
120 {
121 return offset;
122 }
◆ getOldName()
String org.dartlang.analysis.server.protocol.RenameFeedback.getOldName |
( |
| ) |
|
|
inline |
The old name of the element before the refactoring.
Definition at line 127 of file RenameFeedback.java.
127 {
128 return oldName;
129 }
◆ hashCode()
int org.dartlang.analysis.server.protocol.RenameFeedback.hashCode |
( |
| ) |
|
|
inline |
◆ toJson()
JsonObject org.dartlang.analysis.server.protocol.RenameFeedback.toJson |
( |
| ) |
|
|
inline |
Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.
Definition at line 141 of file RenameFeedback.java.
141 {
142 JsonObject jsonObject = new JsonObject();
143 jsonObject.addProperty("offset", offset);
144 jsonObject.addProperty("length", length);
145 jsonObject.addProperty("elementKindName", elementKindName);
146 jsonObject.addProperty("oldName", oldName);
147 return jsonObject;
148 }
◆ toString()
String org.dartlang.analysis.server.protocol.RenameFeedback.toString |
( |
| ) |
|
|
inline |
◆ EMPTY_ARRAY
◆ EMPTY_LIST
final List<RenameFeedback> org.dartlang.analysis.server.protocol.RenameFeedback.EMPTY_LIST = Lists.newArrayList() |
|
static |
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/pkg/analysis_server/tool/spec/generated/java/types/RenameFeedback.java