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

Public Member Functions

 RemoveContentOverlay ()
 
boolean equals (Object obj)
 
String getType ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static RemoveContentOverlay fromJson (JsonObject jsonObject)
 
static List< RemoveContentOverlayfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final RemoveContentOverlay[] EMPTY_ARRAY = new RemoveContentOverlay[0]
 
static final List< RemoveContentOverlayEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

A directive to remove an existing file content overlay. After processing this directive, the file contents will once again be read from the file system.

If this directive is used on a file that doesn't currently have a content overlay, it has no effect.

@coverage dart.server.generated.types

Definition at line 36 of file RemoveContentOverlay.java.

Constructor & Destructor Documentation

◆ RemoveContentOverlay()

org.dartlang.analysis.server.protocol.RemoveContentOverlay.RemoveContentOverlay ( )
inline

Constructor for RemoveContentOverlay.

Definition at line 47 of file RemoveContentOverlay.java.

47 {
48 this.type = "remove";
49 }

Member Function Documentation

◆ equals()

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

Definition at line 52 of file RemoveContentOverlay.java.

52 {
53 if (obj instanceof RemoveContentOverlay) {
55 return
56 ObjectUtilities.equals(other.type, type);
57 }
58 return false;
59 }

◆ fromJson()

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

Definition at line 61 of file RemoveContentOverlay.java.

61 {
62 String type = jsonObject.get("type").getAsString();
63 return new RemoveContentOverlay();
64 }

◆ fromJsonArray()

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

Definition at line 66 of file RemoveContentOverlay.java.

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

◆ getType()

String org.dartlang.analysis.server.protocol.RemoveContentOverlay.getType ( )
inline

Definition at line 78 of file RemoveContentOverlay.java.

78 {
79 return type;
80 }

◆ hashCode()

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

Definition at line 83 of file RemoveContentOverlay.java.

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

◆ toJson()

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

Definition at line 89 of file RemoveContentOverlay.java.

89 {
90 JsonObject jsonObject = new JsonObject();
91 jsonObject.addProperty("type", type);
92 return jsonObject;
93 }

◆ toString()

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

Definition at line 96 of file RemoveContentOverlay.java.

96 {
97 StringBuilder builder = new StringBuilder();
98 builder.append("[");
99 builder.append("type=");
100 builder.append(type);
101 builder.append("]");
102 return builder.toString();
103 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 38 of file RemoveContentOverlay.java.

◆ EMPTY_LIST

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

Definition at line 40 of file RemoveContentOverlay.java.


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