Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
org.dartlang.analysis.server.protocol.FlutterWidgetPropertyValueEnumItem Class Reference

Public Member Functions

 FlutterWidgetPropertyValueEnumItem (String libraryUri, String className, String name, String documentation)
 
boolean equals (Object obj)
 
String getClassName ()
 
String getDocumentation ()
 
String getLibraryUri ()
 
String getName ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static FlutterWidgetPropertyValueEnumItem fromJson (JsonObject jsonObject)
 
static List< FlutterWidgetPropertyValueEnumItemfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final FlutterWidgetPropertyValueEnumItem[] EMPTY_ARRAY = new FlutterWidgetPropertyValueEnumItem[0]
 
static final List< FlutterWidgetPropertyValueEnumItemEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

An item of an enumeration in a general sense - actual enum value, or a static field in a class.

@coverage dart.server.generated.types

Definition at line 32 of file FlutterWidgetPropertyValueEnumItem.java.

Constructor & Destructor Documentation

◆ FlutterWidgetPropertyValueEnumItem()

org.dartlang.analysis.server.protocol.FlutterWidgetPropertyValueEnumItem.FlutterWidgetPropertyValueEnumItem ( String  libraryUri,
String  className,
String  name,
String  documentation 
)
inline

Constructor for FlutterWidgetPropertyValueEnumItem.

Definition at line 63 of file FlutterWidgetPropertyValueEnumItem.java.

63 {
64 this.libraryUri = libraryUri;
65 this.className = className;
66 this.name = name;
67 this.documentation = documentation;
68 }

Member Function Documentation

◆ equals()

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

Definition at line 71 of file FlutterWidgetPropertyValueEnumItem.java.

71 {
72 if (obj instanceof FlutterWidgetPropertyValueEnumItem) {
74 return
75 ObjectUtilities.equals(other.libraryUri, libraryUri) &&
76 ObjectUtilities.equals(other.className, className) &&
77 ObjectUtilities.equals(other.name, name) &&
78 ObjectUtilities.equals(other.documentation, documentation);
79 }
80 return false;
81 }
FlutterWidgetPropertyValueEnumItem(String libraryUri, String className, String name, String documentation)

◆ fromJson()

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

Definition at line 83 of file FlutterWidgetPropertyValueEnumItem.java.

83 {
84 String libraryUri = jsonObject.get("libraryUri").getAsString();
85 String className = jsonObject.get("className").getAsString();
86 String name = jsonObject.get("name").getAsString();
87 String documentation = jsonObject.get("documentation") == null ? null : jsonObject.get("documentation").getAsString();
88 return new FlutterWidgetPropertyValueEnumItem(libraryUri, className, name, documentation);
89 }

◆ fromJsonArray()

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

Definition at line 91 of file FlutterWidgetPropertyValueEnumItem.java.

91 {
92 if (jsonArray == null) {
93 return EMPTY_LIST;
94 }
95 ArrayList<FlutterWidgetPropertyValueEnumItem> list = new ArrayList<FlutterWidgetPropertyValueEnumItem>(jsonArray.size());
96 Iterator<JsonElement> iterator = jsonArray.iterator();
97 while (iterator.hasNext()) {
98 list.add(fromJson(iterator.next().getAsJsonObject()));
99 }
100 return list;
101 }
static FlutterWidgetPropertyValueEnumItem fromJson(JsonObject jsonObject)

◆ getClassName()

String org.dartlang.analysis.server.protocol.FlutterWidgetPropertyValueEnumItem.getClassName ( )
inline

The name of the class or enum.

Definition at line 106 of file FlutterWidgetPropertyValueEnumItem.java.

106 {
107 return className;
108 }

◆ getDocumentation()

String org.dartlang.analysis.server.protocol.FlutterWidgetPropertyValueEnumItem.getDocumentation ( )
inline

The documentation to show to the user. Omitted if the server does not know the documentation, e.g. because the corresponding field is not documented.

Definition at line 114 of file FlutterWidgetPropertyValueEnumItem.java.

114 {
115 return documentation;
116 }

◆ getLibraryUri()

String org.dartlang.analysis.server.protocol.FlutterWidgetPropertyValueEnumItem.getLibraryUri ( )
inline

The URI of the library containing the className. When the enum item is passed back, this will allow the server to import the corresponding library if necessary.

Definition at line 122 of file FlutterWidgetPropertyValueEnumItem.java.

122 {
123 return libraryUri;
124 }

◆ getName()

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

The name of the field in the enumeration, or the static field in the class.

Definition at line 129 of file FlutterWidgetPropertyValueEnumItem.java.

129 {
130 return name;
131 }

◆ hashCode()

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

Definition at line 134 of file FlutterWidgetPropertyValueEnumItem.java.

134 {
135 HashCodeBuilder builder = new HashCodeBuilder();
136 builder.append(libraryUri);
137 builder.append(className);
138 builder.append(name);
139 builder.append(documentation);
140 return builder.toHashCode();
141 }

◆ toJson()

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

Definition at line 143 of file FlutterWidgetPropertyValueEnumItem.java.

143 {
144 JsonObject jsonObject = new JsonObject();
145 jsonObject.addProperty("libraryUri", libraryUri);
146 jsonObject.addProperty("className", className);
147 jsonObject.addProperty("name", name);
148 if (documentation != null) {
149 jsonObject.addProperty("documentation", documentation);
150 }
151 return jsonObject;
152 }

◆ toString()

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

Definition at line 155 of file FlutterWidgetPropertyValueEnumItem.java.

155 {
156 StringBuilder builder = new StringBuilder();
157 builder.append("[");
158 builder.append("libraryUri=");
159 builder.append(libraryUri + ", ");
160 builder.append("className=");
161 builder.append(className + ", ");
162 builder.append("name=");
163 builder.append(name + ", ");
164 builder.append("documentation=");
165 builder.append(documentation);
166 builder.append("]");
167 return builder.toString();
168 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 34 of file FlutterWidgetPropertyValueEnumItem.java.

◆ EMPTY_LIST

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

Definition at line 36 of file FlutterWidgetPropertyValueEnumItem.java.


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