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

Public Member Functions

 PubStatus (boolean isListingPackageDirs)
 
boolean equals (Object obj)
 
boolean isListingPackageDirs ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static PubStatus fromJson (JsonObject jsonObject)
 
static List< PubStatusfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final PubStatus[] EMPTY_ARRAY = new PubStatus[0]
 
static final List< PubStatusEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

An indication of the current state of pub execution.

@coverage dart.server.generated.types

Definition at line 32 of file PubStatus.java.

Constructor & Destructor Documentation

◆ PubStatus()

org.dartlang.analysis.server.protocol.PubStatus.PubStatus ( boolean  isListingPackageDirs)
inline

Constructor for PubStatus.

Definition at line 46 of file PubStatus.java.

46 {
47 this.isListingPackageDirs = isListingPackageDirs;
48 }

Member Function Documentation

◆ equals()

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

Definition at line 51 of file PubStatus.java.

51 {
52 if (obj instanceof PubStatus) {
53 PubStatus other = (PubStatus) obj;
54 return
55 other.isListingPackageDirs == isListingPackageDirs;
56 }
57 return false;
58 }
PubStatus(boolean isListingPackageDirs)
Definition: PubStatus.java:46

◆ fromJson()

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

Definition at line 60 of file PubStatus.java.

60 {
61 boolean isListingPackageDirs = jsonObject.get("isListingPackageDirs").getAsBoolean();
62 return new PubStatus(isListingPackageDirs);
63 }

◆ fromJsonArray()

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

Definition at line 65 of file PubStatus.java.

65 {
66 if (jsonArray == null) {
67 return EMPTY_LIST;
68 }
69 ArrayList<PubStatus> list = new ArrayList<PubStatus>(jsonArray.size());
70 Iterator<JsonElement> iterator = jsonArray.iterator();
71 while (iterator.hasNext()) {
72 list.add(fromJson(iterator.next().getAsJsonObject()));
73 }
74 return list;
75 }
static PubStatus fromJson(JsonObject jsonObject)
Definition: PubStatus.java:60
static final List< PubStatus > EMPTY_LIST
Definition: PubStatus.java:36

◆ hashCode()

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

Definition at line 85 of file PubStatus.java.

85 {
86 HashCodeBuilder builder = new HashCodeBuilder();
87 builder.append(isListingPackageDirs);
88 return builder.toHashCode();
89 }

◆ isListingPackageDirs()

boolean org.dartlang.analysis.server.protocol.PubStatus.isListingPackageDirs ( )
inline

True if the server is currently running pub to produce a list of package directories.

Definition at line 80 of file PubStatus.java.

80 {
81 return isListingPackageDirs;
82 }

◆ toJson()

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

Definition at line 91 of file PubStatus.java.

91 {
92 JsonObject jsonObject = new JsonObject();
93 jsonObject.addProperty("isListingPackageDirs", isListingPackageDirs);
94 return jsonObject;
95 }

◆ toString()

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

Definition at line 98 of file PubStatus.java.

98 {
99 StringBuilder builder = new StringBuilder();
100 builder.append("[");
101 builder.append("isListingPackageDirs=");
102 builder.append(isListingPackageDirs);
103 builder.append("]");
104 return builder.toString();
105 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 34 of file PubStatus.java.

◆ EMPTY_LIST

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

Definition at line 36 of file PubStatus.java.


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