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.InlineMethodFeedback Class Reference
Inheritance diagram for org.dartlang.analysis.server.protocol.InlineMethodFeedback:
org.dartlang.analysis.server.protocol.RefactoringFeedback

Public Member Functions

 InlineMethodFeedback (String className, String methodName, boolean isDeclaration)
 
boolean equals (Object obj)
 
String getClassName ()
 
boolean isDeclaration ()
 
String getMethodName ()
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 
- Public Member Functions inherited from org.dartlang.analysis.server.protocol.RefactoringFeedback
 RefactoringFeedback ()
 

Static Public Member Functions

static InlineMethodFeedback fromJson (JsonObject jsonObject)
 
static List< InlineMethodFeedbackfromJsonArray (JsonArray jsonArray)
 

Static Public Attributes

static final InlineMethodFeedback[] EMPTY_ARRAY = new InlineMethodFeedback[0]
 
static final List< InlineMethodFeedbackEMPTY_LIST = Lists.newArrayList()
 
- Static Public Attributes inherited from org.dartlang.analysis.server.protocol.RefactoringFeedback
static final RefactoringFeedback[] EMPTY_ARRAY = new RefactoringFeedback[0]
 
static final List< RefactoringFeedbackEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

@coverage dart.server.generated.types

Definition at line 30 of file InlineMethodFeedback.java.

Constructor & Destructor Documentation

◆ InlineMethodFeedback()

org.dartlang.analysis.server.protocol.InlineMethodFeedback.InlineMethodFeedback ( String  className,
String  methodName,
boolean  isDeclaration 
)
inline

Constructor for InlineMethodFeedback.

Definition at line 55 of file InlineMethodFeedback.java.

55 {
56 this.className = className;
57 this.methodName = methodName;
58 this.isDeclaration = isDeclaration;
59 }

Member Function Documentation

◆ equals()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.

Definition at line 62 of file InlineMethodFeedback.java.

62 {
63 if (obj instanceof InlineMethodFeedback) {
64 InlineMethodFeedback other = (InlineMethodFeedback) obj;
65 return
66 ObjectUtilities.equals(other.className, className) &&
67 ObjectUtilities.equals(other.methodName, methodName) &&
68 other.isDeclaration == isDeclaration;
69 }
70 return false;
71 }

◆ fromJson()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.

Definition at line 73 of file InlineMethodFeedback.java.

73 {
74 String className = jsonObject.get("className") == null ? null : jsonObject.get("className").getAsString();
75 String methodName = jsonObject.get("methodName").getAsString();
76 boolean isDeclaration = jsonObject.get("isDeclaration").getAsBoolean();
77 return new InlineMethodFeedback(className, methodName, isDeclaration);
78 }
InlineMethodFeedback(String className, String methodName, boolean isDeclaration)

◆ fromJsonArray()

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

Definition at line 80 of file InlineMethodFeedback.java.

80 {
81 if (jsonArray == null) {
82 return EMPTY_LIST;
83 }
84 ArrayList<InlineMethodFeedback> list = new ArrayList<InlineMethodFeedback>(jsonArray.size());
85 Iterator<JsonElement> iterator = jsonArray.iterator();
86 while (iterator.hasNext()) {
87 list.add(fromJson(iterator.next().getAsJsonObject()));
88 }
89 return list;
90 }
static InlineMethodFeedback fromJson(JsonObject jsonObject)

◆ getClassName()

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

The name of the class enclosing the method being inlined. If not a class member is being inlined, this field will be absent.

Definition at line 96 of file InlineMethodFeedback.java.

96 {
97 return className;
98 }

◆ getMethodName()

String org.dartlang.analysis.server.protocol.InlineMethodFeedback.getMethodName ( )
inline

The name of the method (or function) being inlined.

Definition at line 110 of file InlineMethodFeedback.java.

110 {
111 return methodName;
112 }

◆ hashCode()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.

Definition at line 115 of file InlineMethodFeedback.java.

115 {
116 HashCodeBuilder builder = new HashCodeBuilder();
117 builder.append(className);
118 builder.append(methodName);
119 builder.append(isDeclaration);
120 return builder.toHashCode();
121 }

◆ isDeclaration()

boolean org.dartlang.analysis.server.protocol.InlineMethodFeedback.isDeclaration ( )
inline

True if the declaration of the method is selected. So all references should be inlined.

Definition at line 103 of file InlineMethodFeedback.java.

103 {
104 return isDeclaration;
105 }

◆ toJson()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.

Definition at line 123 of file InlineMethodFeedback.java.

123 {
124 JsonObject jsonObject = new JsonObject();
125 if (className != null) {
126 jsonObject.addProperty("className", className);
127 }
128 jsonObject.addProperty("methodName", methodName);
129 jsonObject.addProperty("isDeclaration", isDeclaration);
130 return jsonObject;
131 }

◆ toString()

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

Reimplemented from org.dartlang.analysis.server.protocol.RefactoringFeedback.

Definition at line 134 of file InlineMethodFeedback.java.

134 {
135 StringBuilder builder = new StringBuilder();
136 builder.append("[");
137 builder.append("className=");
138 builder.append(className + ", ");
139 builder.append("methodName=");
140 builder.append(methodName + ", ");
141 builder.append("isDeclaration=");
142 builder.append(isDeclaration);
143 builder.append("]");
144 return builder.toString();
145 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 32 of file InlineMethodFeedback.java.

◆ EMPTY_LIST

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

Definition at line 34 of file InlineMethodFeedback.java.


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