Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
org.dartlang.analysis.server.protocol.ExtractWidgetOptions Class Reference
Inheritance diagram for org.dartlang.analysis.server.protocol.ExtractWidgetOptions:
org.dartlang.analysis.server.protocol.RefactoringOptions

Public Member Functions

 ExtractWidgetOptions (String name)
 
boolean equals (Object obj)
 
String getName ()
 
int hashCode ()
 
void setName (String name)
 
JsonObject toJson ()
 
String toString ()
 
- Public Member Functions inherited from org.dartlang.analysis.server.protocol.RefactoringOptions
 RefactoringOptions ()
 
boolean equals (Object obj)
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static ExtractWidgetOptions fromJson (JsonObject jsonObject)
 
static List< ExtractWidgetOptionsfromJsonArray (JsonArray jsonArray)
 
static RefactoringOptions fromJson (JsonObject jsonObject)
 

Static Public Attributes

static final ExtractWidgetOptions[] EMPTY_ARRAY = new ExtractWidgetOptions[0]
 
static final List< ExtractWidgetOptionsEMPTY_LIST = Lists.newArrayList()
 
- Static Public Attributes inherited from org.dartlang.analysis.server.protocol.RefactoringOptions
static final RefactoringOptions[] EMPTY_ARRAY = new RefactoringOptions[0]
 
static final List< RefactoringOptionsEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

@coverage dart.server.generated.types

Definition at line 30 of file ExtractWidgetOptions.java.

Constructor & Destructor Documentation

◆ ExtractWidgetOptions()

org.dartlang.analysis.server.protocol.ExtractWidgetOptions.ExtractWidgetOptions ( String  name)
inline

Constructor for ExtractWidgetOptions.

Definition at line 44 of file ExtractWidgetOptions.java.

44 {
45 this.name = name;
46 }

Member Function Documentation

◆ equals()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringOptions.

Definition at line 49 of file ExtractWidgetOptions.java.

49 {
50 if (obj instanceof ExtractWidgetOptions) {
52 return
53 ObjectUtilities.equals(other.name, name);
54 }
55 return false;
56 }

◆ fromJson()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringOptions.

Definition at line 58 of file ExtractWidgetOptions.java.

58 {
59 String name = jsonObject.get("name").getAsString();
60 return new ExtractWidgetOptions(name);
61 }

◆ fromJsonArray()

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

Definition at line 63 of file ExtractWidgetOptions.java.

63 {
64 if (jsonArray == null) {
65 return EMPTY_LIST;
66 }
67 ArrayList<ExtractWidgetOptions> list = new ArrayList<ExtractWidgetOptions>(jsonArray.size());
68 Iterator<JsonElement> iterator = jsonArray.iterator();
69 while (iterator.hasNext()) {
70 list.add(fromJson(iterator.next().getAsJsonObject()));
71 }
72 return list;
73 }
static ExtractWidgetOptions fromJson(JsonObject jsonObject)

◆ getName()

String org.dartlang.analysis.server.protocol.ExtractWidgetOptions.getName ( )
inline

The name that the widget class should be given.

Definition at line 78 of file ExtractWidgetOptions.java.

78 {
79 return name;
80 }

◆ hashCode()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringOptions.

Definition at line 83 of file ExtractWidgetOptions.java.

83 {
84 HashCodeBuilder builder = new HashCodeBuilder();
85 builder.append(name);
86 return builder.toHashCode();
87 }

◆ setName()

void org.dartlang.analysis.server.protocol.ExtractWidgetOptions.setName ( String  name)
inline

The name that the widget class should be given.

Definition at line 92 of file ExtractWidgetOptions.java.

92 {
93 this.name = name;
94 }

◆ toJson()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringOptions.

Definition at line 96 of file ExtractWidgetOptions.java.

96 {
97 JsonObject jsonObject = new JsonObject();
98 jsonObject.addProperty("name", name);
99 return jsonObject;
100 }

◆ toString()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringOptions.

Definition at line 103 of file ExtractWidgetOptions.java.

103 {
104 StringBuilder builder = new StringBuilder();
105 builder.append("[");
106 builder.append("name=");
107 builder.append(name);
108 builder.append("]");
109 return builder.toString();
110 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 32 of file ExtractWidgetOptions.java.

◆ EMPTY_LIST

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

Definition at line 34 of file ExtractWidgetOptions.java.


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