Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java

Issue 551083003: Make the generated Java class RefactoringMethodParameter mutable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_java_types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java
index fed95b16d887c2390189c41729bba1bb66711f2d..59038a5e01ef58539793abe386fa4cbb67a277fb 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java
@@ -47,30 +47,30 @@ public class RefactoringMethodParameter {
* The unique identifier of the parameter. Clients may omit this field for the parameters they want
* to add.
*/
- private final String id;
+ private String id;
/**
* The kind of the parameter.
*/
- private final String kind;
+ private String kind;
/**
* The type that should be given to the parameter, or the return type of the parameter's function
* type.
*/
- private final String type;
+ private String type;
/**
* The name that should be given to the parameter.
*/
- private final String name;
+ private String name;
/**
* The parameter list of the parameter's function type. If the parameter is not of a function type,
* this field will not be defined. If the function type has zero parameters, this field will have a
* value of "()".
*/
- private final String parameters;
+ private String parameters;
/**
* Constructor for {@link RefactoringMethodParameter}.
@@ -168,6 +168,45 @@ public class RefactoringMethodParameter {
return builder.toHashCode();
}
+ /**
+ * The unique identifier of the parameter. Clients may omit this field for the parameters they want
+ * to add.
+ */
+ public void setId(String id) {
+ this.id = id;
+ }
+
+ /**
+ * The kind of the parameter.
+ */
+ public void setKind(String kind) {
+ this.kind = kind;
+ }
+
+ /**
+ * The name that should be given to the parameter.
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * The parameter list of the parameter's function type. If the parameter is not of a function type,
+ * this field will not be defined. If the function type has zero parameters, this field will have a
+ * value of "()".
+ */
+ public void setParameters(String parameters) {
+ this.parameters = parameters;
+ }
+
+ /**
+ * The type that should be given to the parameter, or the return type of the parameter's function
+ * type.
+ */
+ public void setType(String type) {
+ this.type = type;
+ }
+
public JsonObject toJson() {
JsonObject jsonObject = new JsonObject();
if (id != null) {
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_java_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698