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

Public Member Functions

 OverriddenMember (Element element, String className)
 
boolean equals (Object obj)
 
String getClassName ()
 
Element getElement ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static OverriddenMember fromJson (JsonObject jsonObject)
 
static List< OverriddenMemberfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final OverriddenMember[] EMPTY_ARRAY = new OverriddenMember[0]
 
static final List< OverriddenMemberEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

A description of a member that is being overridden.

@coverage dart.server.generated.types

Definition at line 32 of file OverriddenMember.java.

Constructor & Destructor Documentation

◆ OverriddenMember()

org.dartlang.analysis.server.protocol.OverriddenMember.OverriddenMember ( Element  element,
String  className 
)
inline

Constructor for OverriddenMember.

Definition at line 51 of file OverriddenMember.java.

51 {
52 this.element = element;
53 this.className = className;
54 }

Member Function Documentation

◆ equals()

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

Definition at line 57 of file OverriddenMember.java.

57 {
58 if (obj instanceof OverriddenMember) {
60 return
61 ObjectUtilities.equals(other.element, element) &&
62 ObjectUtilities.equals(other.className, className);
63 }
64 return false;
65 }

◆ fromJson()

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

Definition at line 67 of file OverriddenMember.java.

67 {
68 Element element = Element.fromJson(jsonObject.get("element").getAsJsonObject());
69 String className = jsonObject.get("className").getAsString();
70 return new OverriddenMember(element, className);
71 }
Definition: dart.idl:42

◆ fromJsonArray()

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

Definition at line 73 of file OverriddenMember.java.

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

◆ getClassName()

String org.dartlang.analysis.server.protocol.OverriddenMember.getClassName ( )
inline

The name of the class in which the member is defined.

Definition at line 88 of file OverriddenMember.java.

88 {
89 return className;
90 }

◆ getElement()

Element org.dartlang.analysis.server.protocol.OverriddenMember.getElement ( )
inline

The element that is being overridden.

Definition at line 95 of file OverriddenMember.java.

95 {
96 return element;
97 }

◆ hashCode()

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

Definition at line 100 of file OverriddenMember.java.

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

◆ toJson()

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

Definition at line 107 of file OverriddenMember.java.

107 {
108 JsonObject jsonObject = new JsonObject();
109 jsonObject.add("element", element.toJson());
110 jsonObject.addProperty("className", className);
111 return jsonObject;
112 }

◆ toString()

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

Definition at line 115 of file OverriddenMember.java.

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

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 34 of file OverriddenMember.java.

◆ EMPTY_LIST

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

Definition at line 36 of file OverriddenMember.java.


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