Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
org.dartlang.analysis.server.protocol.AnalysisOptions Class Reference

Public Member Functions

 AnalysisOptions (Boolean enableAsync, Boolean enableDeferredLoading, Boolean enableEnums, Boolean enableNullAwareOperators, Boolean generateDart2jsHints, Boolean generateHints, Boolean generateLints)
 
boolean equals (Object obj)
 
Boolean getEnableAsync ()
 
Boolean getEnableDeferredLoading ()
 
Boolean getEnableEnums ()
 
Boolean getEnableNullAwareOperators ()
 
Boolean getGenerateDart2jsHints ()
 
Boolean getGenerateHints ()
 
Boolean getGenerateLints ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static AnalysisOptions fromJson (JsonObject jsonObject)
 
static List< AnalysisOptionsfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final AnalysisOptions[] EMPTY_ARRAY = new AnalysisOptions[0]
 
static final List< AnalysisOptionsEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

Deprecated: the only reference to this type has been deprecated.

A set of options controlling what kind of analysis is to be performed. If the value of a field is omitted the value of the option will not be changed.

@coverage dart.server.generated.types

Definition at line 35 of file AnalysisOptions.java.

Constructor & Destructor Documentation

◆ AnalysisOptions()

org.dartlang.analysis.server.protocol.AnalysisOptions.AnalysisOptions ( Boolean  enableAsync,
Boolean  enableDeferredLoading,
Boolean  enableEnums,
Boolean  enableNullAwareOperators,
Boolean  generateDart2jsHints,
Boolean  generateHints,
Boolean  generateLints 
)
inline

Constructor for AnalysisOptions.

Definition at line 88 of file AnalysisOptions.java.

88 {
89 this.enableAsync = enableAsync;
90 this.enableDeferredLoading = enableDeferredLoading;
91 this.enableEnums = enableEnums;
92 this.enableNullAwareOperators = enableNullAwareOperators;
93 this.generateDart2jsHints = generateDart2jsHints;
94 this.generateHints = generateHints;
95 this.generateLints = generateLints;
96 }

Member Function Documentation

◆ equals()

boolean org.dartlang.analysis.server.protocol.AnalysisOptions.equals ( Object  obj)
inline

Definition at line 99 of file AnalysisOptions.java.

99 {
100 if (obj instanceof AnalysisOptions) {
101 AnalysisOptions other = (AnalysisOptions) obj;
102 return
103 ObjectUtilities.equals(other.enableAsync, enableAsync) &&
104 ObjectUtilities.equals(other.enableDeferredLoading, enableDeferredLoading) &&
105 ObjectUtilities.equals(other.enableEnums, enableEnums) &&
106 ObjectUtilities.equals(other.enableNullAwareOperators, enableNullAwareOperators) &&
107 ObjectUtilities.equals(other.generateDart2jsHints, generateDart2jsHints) &&
108 ObjectUtilities.equals(other.generateHints, generateHints) &&
109 ObjectUtilities.equals(other.generateLints, generateLints);
110 }
111 return false;
112 }
AnalysisOptions(Boolean enableAsync, Boolean enableDeferredLoading, Boolean enableEnums, Boolean enableNullAwareOperators, Boolean generateDart2jsHints, Boolean generateHints, Boolean generateLints)

◆ fromJson()

static AnalysisOptions org.dartlang.analysis.server.protocol.AnalysisOptions.fromJson ( JsonObject  jsonObject)
inlinestatic

Definition at line 114 of file AnalysisOptions.java.

114 {
115 Boolean enableAsync = jsonObject.get("enableAsync") == null ? null : jsonObject.get("enableAsync").getAsBoolean();
116 Boolean enableDeferredLoading = jsonObject.get("enableDeferredLoading") == null ? null : jsonObject.get("enableDeferredLoading").getAsBoolean();
117 Boolean enableEnums = jsonObject.get("enableEnums") == null ? null : jsonObject.get("enableEnums").getAsBoolean();
118 Boolean enableNullAwareOperators = jsonObject.get("enableNullAwareOperators") == null ? null : jsonObject.get("enableNullAwareOperators").getAsBoolean();
119 Boolean generateDart2jsHints = jsonObject.get("generateDart2jsHints") == null ? null : jsonObject.get("generateDart2jsHints").getAsBoolean();
120 Boolean generateHints = jsonObject.get("generateHints") == null ? null : jsonObject.get("generateHints").getAsBoolean();
121 Boolean generateLints = jsonObject.get("generateLints") == null ? null : jsonObject.get("generateLints").getAsBoolean();
122 return new AnalysisOptions(enableAsync, enableDeferredLoading, enableEnums, enableNullAwareOperators, generateDart2jsHints, generateHints, generateLints);
123 }

◆ fromJsonArray()

static List< AnalysisOptions > org.dartlang.analysis.server.protocol.AnalysisOptions.fromJsonArray ( JsonArray  jsonArray)
inlinestatic

Definition at line 125 of file AnalysisOptions.java.

125 {
126 if (jsonArray == null) {
127 return EMPTY_LIST;
128 }
129 ArrayList<AnalysisOptions> list = new ArrayList<AnalysisOptions>(jsonArray.size());
130 Iterator<JsonElement> iterator = jsonArray.iterator();
131 while (iterator.hasNext()) {
132 list.add(fromJson(iterator.next().getAsJsonObject()));
133 }
134 return list;
135 }
static AnalysisOptions fromJson(JsonObject jsonObject)
static final List< AnalysisOptions > EMPTY_LIST

◆ getEnableAsync()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getEnableAsync ( )
inline

Deprecated: this feature is always enabled.

True if the client wants to enable support for the proposed async feature.

Definition at line 142 of file AnalysisOptions.java.

142 {
143 return enableAsync;
144 }

◆ getEnableDeferredLoading()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getEnableDeferredLoading ( )
inline

Deprecated: this feature is always enabled.

True if the client wants to enable support for the proposed deferred loading feature.

Definition at line 151 of file AnalysisOptions.java.

151 {
152 return enableDeferredLoading;
153 }

◆ getEnableEnums()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getEnableEnums ( )
inline

Deprecated: this feature is always enabled.

True if the client wants to enable support for the proposed enum feature.

Definition at line 160 of file AnalysisOptions.java.

160 {
161 return enableEnums;
162 }

◆ getEnableNullAwareOperators()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getEnableNullAwareOperators ( )
inline

Deprecated: this feature is always enabled.

True if the client wants to enable support for the proposed "null aware operators" feature.

Definition at line 169 of file AnalysisOptions.java.

169 {
170 return enableNullAwareOperators;
171 }

◆ getGenerateDart2jsHints()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getGenerateDart2jsHints ( )
inline

True if hints that are specific to dart2js should be generated. This option is ignored if generateHints is false.

Definition at line 177 of file AnalysisOptions.java.

177 {
178 return generateDart2jsHints;
179 }

◆ getGenerateHints()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getGenerateHints ( )
inline

True if hints should be generated as part of generating errors and warnings.

Definition at line 184 of file AnalysisOptions.java.

184 {
185 return generateHints;
186 }

◆ getGenerateLints()

Boolean org.dartlang.analysis.server.protocol.AnalysisOptions.getGenerateLints ( )
inline

True if lints should be generated as part of generating errors and warnings.

Definition at line 191 of file AnalysisOptions.java.

191 {
192 return generateLints;
193 }

◆ hashCode()

int org.dartlang.analysis.server.protocol.AnalysisOptions.hashCode ( )
inline

Definition at line 196 of file AnalysisOptions.java.

196 {
197 HashCodeBuilder builder = new HashCodeBuilder();
198 builder.append(enableAsync);
199 builder.append(enableDeferredLoading);
200 builder.append(enableEnums);
201 builder.append(enableNullAwareOperators);
202 builder.append(generateDart2jsHints);
203 builder.append(generateHints);
204 builder.append(generateLints);
205 return builder.toHashCode();
206 }

◆ toJson()

JsonObject org.dartlang.analysis.server.protocol.AnalysisOptions.toJson ( )
inline

Definition at line 208 of file AnalysisOptions.java.

208 {
209 JsonObject jsonObject = new JsonObject();
210 if (enableAsync != null) {
211 jsonObject.addProperty("enableAsync", enableAsync);
212 }
213 if (enableDeferredLoading != null) {
214 jsonObject.addProperty("enableDeferredLoading", enableDeferredLoading);
215 }
216 if (enableEnums != null) {
217 jsonObject.addProperty("enableEnums", enableEnums);
218 }
219 if (enableNullAwareOperators != null) {
220 jsonObject.addProperty("enableNullAwareOperators", enableNullAwareOperators);
221 }
222 if (generateDart2jsHints != null) {
223 jsonObject.addProperty("generateDart2jsHints", generateDart2jsHints);
224 }
225 if (generateHints != null) {
226 jsonObject.addProperty("generateHints", generateHints);
227 }
228 if (generateLints != null) {
229 jsonObject.addProperty("generateLints", generateLints);
230 }
231 return jsonObject;
232 }

◆ toString()

String org.dartlang.analysis.server.protocol.AnalysisOptions.toString ( )
inline

Definition at line 235 of file AnalysisOptions.java.

235 {
236 StringBuilder builder = new StringBuilder();
237 builder.append("[");
238 builder.append("enableAsync=");
239 builder.append(enableAsync + ", ");
240 builder.append("enableDeferredLoading=");
241 builder.append(enableDeferredLoading + ", ");
242 builder.append("enableEnums=");
243 builder.append(enableEnums + ", ");
244 builder.append("enableNullAwareOperators=");
245 builder.append(enableNullAwareOperators + ", ");
246 builder.append("generateDart2jsHints=");
247 builder.append(generateDart2jsHints + ", ");
248 builder.append("generateHints=");
249 builder.append(generateHints + ", ");
250 builder.append("generateLints=");
251 builder.append(generateLints);
252 builder.append("]");
253 return builder.toString();
254 }

Member Data Documentation

◆ EMPTY_ARRAY

final AnalysisOptions [] org.dartlang.analysis.server.protocol.AnalysisOptions.EMPTY_ARRAY = new AnalysisOptions[0]
static

Definition at line 37 of file AnalysisOptions.java.

◆ EMPTY_LIST

final List<AnalysisOptions> org.dartlang.analysis.server.protocol.AnalysisOptions.EMPTY_LIST = Lists.newArrayList()
static

Definition at line 39 of file AnalysisOptions.java.


The documentation for this class was generated from the following file: