Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
RefactoringOptions.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * This file has been automatically generated. Please do not edit it manually.
7 * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files".
8 */
9package org.dartlang.analysis.server.protocol;
10
11import java.util.Arrays;
12import java.util.List;
13import java.util.Map;
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;
25
26/**
27 * An abstract superclass of all refactoring options.
28 *
29 * @coverage dart.server.generated.types
30 */
31@SuppressWarnings("unused")
32public class RefactoringOptions {
33
34 public static final RefactoringOptions[] EMPTY_ARRAY = new RefactoringOptions[0];
35
36 public static final List<RefactoringOptions> EMPTY_LIST = Lists.newArrayList();
37
38 /**
39 * Constructor for {@link RefactoringOptions}.
40 */
42 }
43
44 @Override
45 public boolean equals(Object obj) {
46 if (obj instanceof RefactoringOptions) {
48 return
49 true;
50 }
51 return false;
52 }
53
54 public static RefactoringOptions fromJson(JsonObject jsonObject) {
55 return new RefactoringOptions();
56 }
57
58 @Override
59 public int hashCode() {
60 HashCodeBuilder builder = new HashCodeBuilder();
61 return builder.toHashCode();
62 }
63
64 public JsonObject toJson() {
65 JsonObject jsonObject = new JsonObject();
66 return jsonObject;
67 }
68
69 @Override
70 public String toString() {
71 StringBuilder builder = new StringBuilder();
72 builder.append("[");
73 builder.append("]");
74 return builder.toString();
75 }
76
77}
static RefactoringOptions fromJson(JsonObject jsonObject)