9package org.dartlang.analysis.server.protocol;
11import java.util.Arrays;
14import com.google.common.collect.Lists;
15import com.google.dart.server.utilities.general.JsonUtilities;
16import com.google.dart.server.utilities.general.ObjectUtilities;
17import com.google.gson.JsonArray;
18import com.google.gson.JsonElement;
19import com.google.gson.JsonObject;
20import com.google.gson.JsonPrimitive;
21import org.apache.commons.lang3.builder.HashCodeBuilder;
22import java.util.ArrayList;
23import java.util.Iterator;
24import org.apache.commons.lang3.StringUtils;
29@SuppressWarnings(
"unused")
40 private boolean deleteSource;
46 private boolean inlineAll;
52 this.deleteSource = deleteSource;
53 this.inlineAll = inlineAll;
61 other.deleteSource == deleteSource &&
62 other.inlineAll == inlineAll;
68 boolean deleteSource = jsonObject.get(
"deleteSource").getAsBoolean();
69 boolean inlineAll = jsonObject.get(
"inlineAll").getAsBoolean();
74 if (jsonArray ==
null) {
77 ArrayList<InlineMethodOptions> list =
new ArrayList<InlineMethodOptions>(jsonArray.size());
78 Iterator<JsonElement> iterator = jsonArray.iterator();
79 while (iterator.hasNext()) {
80 list.add(fromJson(iterator.next().getAsJsonObject()));
103 HashCodeBuilder
builder =
new HashCodeBuilder();
114 this.deleteSource = deleteSource;
122 this.inlineAll = inlineAll;
126 JsonObject jsonObject =
new JsonObject();
127 jsonObject.addProperty(
"deleteSource", deleteSource);
128 jsonObject.addProperty(
"inlineAll", inlineAll);
134 StringBuilder
builder =
new StringBuilder();
136 builder.append(
"deleteSource=");
137 builder.append(deleteSource +
", ");
static List< InlineMethodOptions > fromJsonArray(JsonArray jsonArray)
void setInlineAll(boolean inlineAll)
boolean equals(Object obj)
InlineMethodOptions(boolean deleteSource, boolean inlineAll)
static InlineMethodOptions fromJson(JsonObject jsonObject)
void setDeleteSource(boolean deleteSource)