| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2014, the Dart project authors. | |
| 3 * | |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | |
| 5 * in compliance with the License. You may obtain a copy of the License at | |
| 6 * | |
| 7 * http://www.eclipse.org/legal/epl-v10.html | |
| 8 * | |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | |
| 12 * the License. | |
| 13 */ | |
| 14 | |
| 15 package com.google.dart.server; | |
| 16 | |
| 17 | |
| 18 /** | |
| 19 * A set of options controlling what kind of analysis is to be performed. | |
| 20 * | |
| 21 * @coverage dart.server | |
| 22 */ | |
| 23 public class AnalysisOptions { | |
| 24 /** | |
| 25 * True if the client wants Angular code to be analyzed. | |
| 26 */ | |
| 27 private Boolean analyzeAngular; | |
| 28 | |
| 29 /** | |
| 30 * True if the client wants Polymer code to be analyzed. | |
| 31 */ | |
| 32 private Boolean analyzePolymer; | |
| 33 | |
| 34 /** | |
| 35 * True if the client wants to enable support for the proposed async feature. | |
| 36 */ | |
| 37 private Boolean enableAsync; | |
| 38 | |
| 39 /** | |
| 40 * True if the client wants to enable support for the proposed deferred loadin
g feature. | |
| 41 */ | |
| 42 private Boolean enableDeferredLoading; | |
| 43 | |
| 44 /** | |
| 45 * True if the client wants to enable support for the proposed enum feature. | |
| 46 */ | |
| 47 private Boolean enableEnums; | |
| 48 | |
| 49 /** | |
| 50 * True if hints that are specific to dart2js should be generated. This option
is ignored if | |
| 51 * either provideErrors or generateHints is false. | |
| 52 */ | |
| 53 private Boolean generateDart2jsHints; | |
| 54 | |
| 55 /** | |
| 56 * True is hints should be generated as part of generating errors and warnings
. This option is | |
| 57 * ignored if provideErrors is false. | |
| 58 */ | |
| 59 private Boolean generateHints; | |
| 60 | |
| 61 /** | |
| 62 * Return the analyze angular option, true if the client wants Angular code to
be analyzed. | |
| 63 * | |
| 64 * @return the analyze angular option, true if the client wants Angular code t
o be analyzed | |
| 65 */ | |
| 66 public Boolean getAnalyzeAngular() { | |
| 67 return analyzeAngular; | |
| 68 } | |
| 69 | |
| 70 /** | |
| 71 * Return the analyze polymer option, true if the client wants Polymer code to
be analyzed. | |
| 72 * | |
| 73 * @return the analyze polymer option, true if the client wants Polymer code t
o be analyzed | |
| 74 */ | |
| 75 public Boolean getAnalyzePolymer() { | |
| 76 return analyzePolymer; | |
| 77 } | |
| 78 | |
| 79 /** | |
| 80 * Return the enable async option, true if the client wants to enable support
for the proposed | |
| 81 * async feature. | |
| 82 * | |
| 83 * @return the enable async option, true if the client wants to enable support
for the proposed | |
| 84 * async feature | |
| 85 */ | |
| 86 public Boolean getEnableAsync() { | |
| 87 return enableAsync; | |
| 88 } | |
| 89 | |
| 90 /** | |
| 91 * Return the enable deferred loading option, true if the client wants to enab
le support for the | |
| 92 * proposed deferred loading feature. | |
| 93 * | |
| 94 * @return the enable deferred loading option, true if the client wants to ena
ble support for the | |
| 95 * proposed deferred loading feature | |
| 96 */ | |
| 97 public Boolean getEnableDeferredLoading() { | |
| 98 return enableDeferredLoading; | |
| 99 } | |
| 100 | |
| 101 /** | |
| 102 * Return the enable enums option, true if the client wants to enable support
for the proposed | |
| 103 * enum feature | |
| 104 * | |
| 105 * @return the enable enums option, true if the client wants to enable support
for the proposed | |
| 106 * enum feature | |
| 107 */ | |
| 108 public Boolean getEnableEnums() { | |
| 109 return enableEnums; | |
| 110 } | |
| 111 | |
| 112 /** | |
| 113 * Return the generate dart2js hints option, true if hints that are specific t
o dart2js should be | |
| 114 * generated. This option is ignored if either provideErrors or generateHints
is false. | |
| 115 * | |
| 116 * @return the generate dart2js hints option, true if hints that are specific
to dart2js should be | |
| 117 * generated | |
| 118 */ | |
| 119 public Boolean getGenerateDart2jsHints() { | |
| 120 return generateDart2jsHints; | |
| 121 } | |
| 122 | |
| 123 /** | |
| 124 * Return the generate hints option, true is hints should be generated as part
of generating | |
| 125 * errors and warnings. This option is ignored if provideErrors is false. | |
| 126 * | |
| 127 * @return the generate hints option, true is hints should be generated as par
t of generating | |
| 128 * errors and warnings | |
| 129 */ | |
| 130 public Boolean getGenerateHints() { | |
| 131 return generateHints; | |
| 132 } | |
| 133 | |
| 134 /** | |
| 135 * Set the analyze angular option. | |
| 136 * | |
| 137 * @param analyzeAngular the new value for the analyze angular option | |
| 138 */ | |
| 139 public void setAnalyzeAngular(Boolean analyzeAngular) { | |
| 140 this.analyzeAngular = analyzeAngular; | |
| 141 } | |
| 142 | |
| 143 /** | |
| 144 * Set the analyze polymer option. | |
| 145 * | |
| 146 * @param analyzePolymer the new value for the analyze polymer option | |
| 147 */ | |
| 148 public void setAnalyzePolymer(Boolean analyzePolymer) { | |
| 149 this.analyzePolymer = analyzePolymer; | |
| 150 } | |
| 151 | |
| 152 /** | |
| 153 * Set the enable async option. | |
| 154 * | |
| 155 * @param enableAsync the new value for the enable async option | |
| 156 */ | |
| 157 public void setEnableAsync(Boolean enableAsync) { | |
| 158 this.enableAsync = enableAsync; | |
| 159 } | |
| 160 | |
| 161 /** | |
| 162 * Set the enable deferred loading option. | |
| 163 * | |
| 164 * @param enableDeferredLoading the new value for the enable deferred loading
option | |
| 165 */ | |
| 166 public void setEnableDeferredLoading(Boolean enableDeferredLoading) { | |
| 167 this.enableDeferredLoading = enableDeferredLoading; | |
| 168 } | |
| 169 | |
| 170 /** | |
| 171 * Set the enable enums option. | |
| 172 * | |
| 173 * @param enableEnums the new value for the enable enums option | |
| 174 */ | |
| 175 public void setEnableEnums(Boolean enableEnums) { | |
| 176 this.enableEnums = enableEnums; | |
| 177 } | |
| 178 | |
| 179 /** | |
| 180 * Set the generate dart2js hints option. | |
| 181 * | |
| 182 * @param generateDart2jsHints the new value for the generate dart2js hints op
tion | |
| 183 */ | |
| 184 public void setGenerateDart2jsHints(Boolean generateDart2jsHints) { | |
| 185 this.generateDart2jsHints = generateDart2jsHints; | |
| 186 } | |
| 187 | |
| 188 /** | |
| 189 * Set the generate hints option. | |
| 190 * | |
| 191 * @param generateHints the new value for the generate hints option | |
| 192 */ | |
| 193 public void setGenerateHints(Boolean generateHints) { | |
| 194 this.generateHints = generateHints; | |
| 195 } | |
| 196 } | |
| OLD | NEW |