Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
org.dartlang.analysis.server.protocol.ImplementedClass Class Reference

Public Member Functions

 ImplementedClass (int offset, int length)
 
boolean equals (Object obj)
 
int getLength ()
 
int getOffset ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static ImplementedClass fromJson (JsonObject jsonObject)
 
static List< ImplementedClassfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final ImplementedClass[] EMPTY_ARRAY = new ImplementedClass[0]
 
static final List< ImplementedClassEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

A description of a class that is implemented or extended.

@coverage dart.server.generated.types

Definition at line 32 of file ImplementedClass.java.

Constructor & Destructor Documentation

◆ ImplementedClass()

org.dartlang.analysis.server.protocol.ImplementedClass.ImplementedClass ( int  offset,
int  length 
)
inline

Constructor for ImplementedClass.

Definition at line 51 of file ImplementedClass.java.

51 {
52 this.offset = offset;
53 this.length = length;
54 }

Member Function Documentation

◆ equals()

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

Definition at line 57 of file ImplementedClass.java.

57 {
58 if (obj instanceof ImplementedClass) {
59 ImplementedClass other = (ImplementedClass) obj;
60 return
61 other.offset == offset &&
62 other.length == length;
63 }
64 return false;
65 }

◆ fromJson()

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

Definition at line 67 of file ImplementedClass.java.

67 {
68 int offset = jsonObject.get("offset").getAsInt();
69 int length = jsonObject.get("length").getAsInt();
70 return new ImplementedClass(offset, length);
71 }

◆ fromJsonArray()

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

Definition at line 73 of file ImplementedClass.java.

73 {
74 if (jsonArray == null) {
75 return EMPTY_LIST;
76 }
77 ArrayList<ImplementedClass> list = new ArrayList<ImplementedClass>(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 ImplementedClass fromJson(JsonObject jsonObject)

◆ getLength()

int org.dartlang.analysis.server.protocol.ImplementedClass.getLength ( )
inline

The length of the name of the implemented class.

Definition at line 88 of file ImplementedClass.java.

88 {
89 return length;
90 }

◆ getOffset()

int org.dartlang.analysis.server.protocol.ImplementedClass.getOffset ( )
inline

The offset of the name of the implemented class.

Definition at line 95 of file ImplementedClass.java.

95 {
96 return offset;
97 }

◆ hashCode()

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

Definition at line 100 of file ImplementedClass.java.

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

◆ toJson()

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

Definition at line 107 of file ImplementedClass.java.

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

◆ toString()

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

Definition at line 115 of file ImplementedClass.java.

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

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 34 of file ImplementedClass.java.

◆ EMPTY_LIST

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

Definition at line 36 of file ImplementedClass.java.


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