Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
org.dartlang.analysis.server.protocol.InlineMethodOptions Class Reference
Inheritance diagram for org.dartlang.analysis.server.protocol.InlineMethodOptions:
org.dartlang.analysis.server.protocol.RefactoringOptions

Public Member Functions

 InlineMethodOptions (boolean deleteSource, boolean inlineAll)
 
boolean equals (Object obj)
 
boolean deleteSource ()
 
boolean inlineAll ()
 
int hashCode ()
 
void setDeleteSource (boolean deleteSource)
 
void setInlineAll (boolean inlineAll)
 
JsonObject toJson ()
 
String toString ()
 
- Public Member Functions inherited from org.dartlang.analysis.server.protocol.RefactoringOptions
 RefactoringOptions ()
 
boolean equals (Object obj)
 
int hashCode ()
 
JsonObject toJson ()
 
String toString ()
 

Static Public Member Functions

static InlineMethodOptions fromJson (JsonObject jsonObject)
 
static List< InlineMethodOptionsfromJsonArray (JsonArray jsonArray)
 
static RefactoringOptions fromJson (JsonObject jsonObject)
 

Static Public Attributes

static final InlineMethodOptions[] EMPTY_ARRAY = new InlineMethodOptions[0]
 
static final List< InlineMethodOptionsEMPTY_LIST = Lists.newArrayList()
 
- Static Public Attributes inherited from org.dartlang.analysis.server.protocol.RefactoringOptions
static final RefactoringOptions[] EMPTY_ARRAY = new RefactoringOptions[0]
 
static final List< RefactoringOptionsEMPTY_LIST = Lists.newArrayList()
 

Detailed Description

@coverage dart.server.generated.types

Definition at line 30 of file InlineMethodOptions.java.

Constructor & Destructor Documentation

◆ InlineMethodOptions()

org.dartlang.analysis.server.protocol.InlineMethodOptions.InlineMethodOptions ( boolean  deleteSource,
boolean  inlineAll 
)
inline

Constructor for InlineMethodOptions.

Definition at line 51 of file InlineMethodOptions.java.

51 {
52 this.deleteSource = deleteSource;
53 this.inlineAll = inlineAll;
54 }

Member Function Documentation

◆ deleteSource()

boolean org.dartlang.analysis.server.protocol.InlineMethodOptions.deleteSource ( )
inline

True if the method being inlined should be removed. It is an error if this field is true and inlineAll is false.

Definition at line 89 of file InlineMethodOptions.java.

89 {
90 return deleteSource;
91 }

◆ equals()

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

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

Definition at line 57 of file InlineMethodOptions.java.

57 {
58 if (obj instanceof InlineMethodOptions) {
60 return
61 other.deleteSource == deleteSource &&
62 other.inlineAll == inlineAll;
63 }
64 return false;
65 }
InlineMethodOptions(boolean deleteSource, boolean inlineAll)

◆ fromJson()

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

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

Definition at line 67 of file InlineMethodOptions.java.

67 {
68 boolean deleteSource = jsonObject.get("deleteSource").getAsBoolean();
69 boolean inlineAll = jsonObject.get("inlineAll").getAsBoolean();
70 return new InlineMethodOptions(deleteSource, inlineAll);
71 }

◆ fromJsonArray()

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

Definition at line 73 of file InlineMethodOptions.java.

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

◆ hashCode()

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

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

Definition at line 102 of file InlineMethodOptions.java.

102 {
103 HashCodeBuilder builder = new HashCodeBuilder();
104 builder.append(deleteSource);
105 builder.append(inlineAll);
106 return builder.toHashCode();
107 }

◆ inlineAll()

boolean org.dartlang.analysis.server.protocol.InlineMethodOptions.inlineAll ( )
inline

True if all invocations of the method should be inlined, or false if only the invocation site used to create this refactoring should be inlined.

Definition at line 97 of file InlineMethodOptions.java.

97 {
98 return inlineAll;
99 }

◆ setDeleteSource()

void org.dartlang.analysis.server.protocol.InlineMethodOptions.setDeleteSource ( boolean  deleteSource)
inline

True if the method being inlined should be removed. It is an error if this field is true and inlineAll is false.

Definition at line 113 of file InlineMethodOptions.java.

113 {
114 this.deleteSource = deleteSource;
115 }

◆ setInlineAll()

void org.dartlang.analysis.server.protocol.InlineMethodOptions.setInlineAll ( boolean  inlineAll)
inline

True if all invocations of the method should be inlined, or false if only the invocation site used to create this refactoring should be inlined.

Definition at line 121 of file InlineMethodOptions.java.

121 {
122 this.inlineAll = inlineAll;
123 }

◆ toJson()

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

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

Definition at line 125 of file InlineMethodOptions.java.

125 {
126 JsonObject jsonObject = new JsonObject();
127 jsonObject.addProperty("deleteSource", deleteSource);
128 jsonObject.addProperty("inlineAll", inlineAll);
129 return jsonObject;
130 }

◆ toString()

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

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

Definition at line 133 of file InlineMethodOptions.java.

133 {
134 StringBuilder builder = new StringBuilder();
135 builder.append("[");
136 builder.append("deleteSource=");
137 builder.append(deleteSource + ", ");
138 builder.append("inlineAll=");
139 builder.append(inlineAll);
140 builder.append("]");
141 return builder.toString();
142 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 32 of file InlineMethodOptions.java.

◆ EMPTY_LIST

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

Definition at line 34 of file InlineMethodOptions.java.


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