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

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

Issue 470723003: Proposal for RefactoringMethodParameter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 4 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/doc/api.html » ('j') | pkg/analysis_server/tool/spec/spec_input.html » ('J')
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
new file mode 100644
index 0000000000000000000000000000000000000000..70383c0cb43e2ceb6bc700720ee6674c6c035657
--- /dev/null
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RefactoringMethodParameter.java
@@ -0,0 +1,144 @@
+/*
+ * Copyright (c) 2014, the Dart project authors.
+ *
+ * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ *
+ * This file has been automatically generated. Please do not edit it manually.
+ * To regenerate the file, use the script "pkg/analysis_server/spec/generate_files".
+ */
+package com.google.dart.server.generated.types;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import com.google.dart.server.utilities.general.ObjectUtilities;
+import org.apache.commons.lang3.StringUtils;
+
+/**
+ * A description of a parameter in a method refactoring.
+ *
+ * @coverage dart.server.generated.types
+ */
+@SuppressWarnings("unused")
+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;
+
+ /**
+ * The kind of the parameter.
+ */
+ private final String kind;
+
+ /**
+ * The name that should be given to the parameter.
+ */
+ private final 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;
+
+ /**
+ * The type that should be given to the parameter, or the return type of the parameter's function
+ * type.
+ */
+ private final String type;
+
+ /**
+ * Constructor for {@link RefactoringMethodParameter}.
+ */
+ public RefactoringMethodParameter(String id, String kind, String type, String name, String parameters) {
+ this.id = id;
+ this.kind = kind;
+ this.type = type;
+ this.name = name;
+ this.parameters = parameters;
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (obj instanceof RefactoringMethodParameter) {
+ RefactoringMethodParameter other = (RefactoringMethodParameter) obj;
+ return
+ ObjectUtilities.equals(other.id, id) &&
+ ObjectUtilities.equals(other.kind, kind) &&
+ ObjectUtilities.equals(other.type, type) &&
+ ObjectUtilities.equals(other.name, name) &&
+ ObjectUtilities.equals(other.parameters, parameters);
+ }
+ return false;
+ }
+
+ /**
+ * The unique identifier of the parameter. Clients may omit this field for the parameters they want
+ * to add.
+ */
+ public String getId() {
+ return id;
+ }
+
+ /**
+ * The kind of the parameter.
+ */
+ public String getKind() {
+ return kind;
+ }
+
+ /**
+ * The name that should be given to the parameter.
+ */
+ public String getName() {
+ return 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 String getParameters() {
+ return parameters;
+ }
+
+ /**
+ * The type that should be given to the parameter, or the return type of the parameter's function
+ * type.
+ */
+ public String getType() {
+ return type;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder builder = new StringBuilder();
+ builder.append("[");
+ builder.append("id=");
+ builder.append(id.toString() + ", ");
+ builder.append("kind=");
+ builder.append(kind.toString() + ", ");
+ builder.append("type=");
+ builder.append(type.toString() + ", ");
+ builder.append("name=");
+ builder.append(name.toString() + ", ");
+ builder.append("parameters=");
+ builder.append(parameters.toString() + ", ");
+ builder.append("]");
+ return builder.toString();
+ }
+
+}
« no previous file with comments | « no previous file | pkg/analysis_server/doc/api.html » ('j') | pkg/analysis_server/tool/spec/spec_input.html » ('J')

Powered by Google App Engine
This is Rietveld 408576698