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

Public Member Functions

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

Static Public Member Functions

static ImplementedMember fromJson (JsonObject jsonObject)
 
static List< ImplementedMemberfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final ImplementedMember[] EMPTY_ARRAY = new ImplementedMember[0]
 
static final List< ImplementedMemberEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

A description of a class member that is implemented or overridden.

@coverage dart.server.generated.types

Definition at line 32 of file ImplementedMember.java.

Constructor & Destructor Documentation

◆ ImplementedMember()

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

Constructor for ImplementedMember.

Definition at line 51 of file ImplementedMember.java.

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

Member Function Documentation

◆ equals()

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

Definition at line 57 of file ImplementedMember.java.

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

◆ fromJson()

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

Definition at line 67 of file ImplementedMember.java.

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

◆ fromJsonArray()

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

Definition at line 73 of file ImplementedMember.java.

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

◆ getLength()

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

The length of the name of the implemented member.

Definition at line 88 of file ImplementedMember.java.

88 {
89 return length;
90 }

◆ getOffset()

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

The offset of the name of the implemented member.

Definition at line 95 of file ImplementedMember.java.

95 {
96 return offset;
97 }

◆ hashCode()

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

Definition at line 100 of file ImplementedMember.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.ImplementedMember.toJson ( )
inline

Definition at line 107 of file ImplementedMember.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.ImplementedMember.toString ( )
inline

Definition at line 115 of file ImplementedMember.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 ImplementedMember [] org.dartlang.analysis.server.protocol.ImplementedMember.EMPTY_ARRAY = new ImplementedMember[0]
static

Definition at line 34 of file ImplementedMember.java.

◆ EMPTY_LIST

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

Definition at line 36 of file ImplementedMember.java.


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