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

Public Member Functions

 ExecutableFile (String file, String kind)
 
boolean equals (Object obj)
 
String getFile ()
 
String getKind ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static ExecutableFile fromJson (JsonObject jsonObject)
 
static List< ExecutableFilefromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final ExecutableFile[] EMPTY_ARRAY = new ExecutableFile[0]
 
static final List< ExecutableFileEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

A description of an executable file.

@coverage dart.server.generated.types

Definition at line 32 of file ExecutableFile.java.

Constructor & Destructor Documentation

◆ ExecutableFile()

org.dartlang.analysis.server.protocol.ExecutableFile.ExecutableFile ( String  file,
String  kind 
)
inline

Constructor for ExecutableFile.

Definition at line 51 of file ExecutableFile.java.

51 {
52 this.file = file;
53 this.kind = kind;
54 }

Member Function Documentation

◆ equals()

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

Definition at line 57 of file ExecutableFile.java.

57 {
58 if (obj instanceof ExecutableFile) {
59 ExecutableFile other = (ExecutableFile) obj;
60 return
61 ObjectUtilities.equals(other.file, file) &&
62 ObjectUtilities.equals(other.kind, kind);
63 }
64 return false;
65 }

◆ fromJson()

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

Definition at line 67 of file ExecutableFile.java.

67 {
68 String file = jsonObject.get("file").getAsString();
69 String kind = jsonObject.get("kind").getAsString();
70 return new ExecutableFile(file, kind);
71 }

◆ fromJsonArray()

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

Definition at line 73 of file ExecutableFile.java.

73 {
74 if (jsonArray == null) {
75 return EMPTY_LIST;
76 }
77 ArrayList<ExecutableFile> list = new ArrayList<ExecutableFile>(jsonArray.size());
78 Iterator<JsonElement> iterator = jsonArray.iterator();
79 while (iterator.hasNext()) {
80 list.add(fromJson(iterator.next().getAsJsonObject()));
81 }
82 return list;
83 }
static ExecutableFile fromJson(JsonObject jsonObject)
static final List< ExecutableFile > EMPTY_LIST

◆ getFile()

String org.dartlang.analysis.server.protocol.ExecutableFile.getFile ( )
inline

The path of the executable file.

Definition at line 88 of file ExecutableFile.java.

88 {
89 return file;
90 }

◆ getKind()

String org.dartlang.analysis.server.protocol.ExecutableFile.getKind ( )
inline

The kind of the executable file.

Definition at line 95 of file ExecutableFile.java.

95 {
96 return kind;
97 }

◆ hashCode()

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

Definition at line 100 of file ExecutableFile.java.

100 {
101 HashCodeBuilder builder = new HashCodeBuilder();
102 builder.append(file);
103 builder.append(kind);
104 return builder.toHashCode();
105 }

◆ toJson()

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

Definition at line 107 of file ExecutableFile.java.

107 {
108 JsonObject jsonObject = new JsonObject();
109 jsonObject.addProperty("file", file);
110 jsonObject.addProperty("kind", kind);
111 return jsonObject;
112 }

◆ toString()

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

Definition at line 115 of file ExecutableFile.java.

115 {
116 StringBuilder builder = new StringBuilder();
117 builder.append("[");
118 builder.append("file=");
119 builder.append(file + ", ");
120 builder.append("kind=");
121 builder.append(kind);
122 builder.append("]");
123 return builder.toString();
124 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 34 of file ExecutableFile.java.

◆ EMPTY_LIST

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

Definition at line 36 of file ExecutableFile.java.


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