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

Public Member Functions

 MoveFileOptions (String newFile)
 
boolean equals (Object obj)
 
String getNewFile ()
 
int hashCode ()
 
void setNewFile (String newFile)
 
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 MoveFileOptions fromJson (JsonObject jsonObject)
 
static List< MoveFileOptionsfromJsonArray (JsonArray jsonArray)
 
static RefactoringOptions fromJson (JsonObject jsonObject)
 

Static Public Attributes

static final MoveFileOptions[] EMPTY_ARRAY = new MoveFileOptions[0]
 
static final List< MoveFileOptionsEMPTY_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 MoveFileOptions.java.

Constructor & Destructor Documentation

◆ MoveFileOptions()

org.dartlang.analysis.server.protocol.MoveFileOptions.MoveFileOptions ( String  newFile)
inline

Constructor for MoveFileOptions.

Definition at line 44 of file MoveFileOptions.java.

44 {
45 this.newFile = newFile;
46 }

Member Function Documentation

◆ equals()

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

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

Definition at line 49 of file MoveFileOptions.java.

49 {
50 if (obj instanceof MoveFileOptions) {
51 MoveFileOptions other = (MoveFileOptions) obj;
52 return
53 ObjectUtilities.equals(other.newFile, newFile);
54 }
55 return false;
56 }

◆ fromJson()

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

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

Definition at line 58 of file MoveFileOptions.java.

58 {
59 String newFile = jsonObject.get("newFile").getAsString();
60 return new MoveFileOptions(newFile);
61 }

◆ fromJsonArray()

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

Definition at line 63 of file MoveFileOptions.java.

63 {
64 if (jsonArray == null) {
65 return EMPTY_LIST;
66 }
67 ArrayList<MoveFileOptions> list = new ArrayList<MoveFileOptions>(jsonArray.size());
68 Iterator<JsonElement> iterator = jsonArray.iterator();
69 while (iterator.hasNext()) {
70 list.add(fromJson(iterator.next().getAsJsonObject()));
71 }
72 return list;
73 }
static MoveFileOptions fromJson(JsonObject jsonObject)
static final List< MoveFileOptions > EMPTY_LIST

◆ getNewFile()

String org.dartlang.analysis.server.protocol.MoveFileOptions.getNewFile ( )
inline

The new file path to which the given file is being moved.

Definition at line 78 of file MoveFileOptions.java.

78 {
79 return newFile;
80 }

◆ hashCode()

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

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

Definition at line 83 of file MoveFileOptions.java.

83 {
84 HashCodeBuilder builder = new HashCodeBuilder();
85 builder.append(newFile);
86 return builder.toHashCode();
87 }

◆ setNewFile()

void org.dartlang.analysis.server.protocol.MoveFileOptions.setNewFile ( String  newFile)
inline

The new file path to which the given file is being moved.

Definition at line 92 of file MoveFileOptions.java.

92 {
93 this.newFile = newFile;
94 }

◆ toJson()

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

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

Definition at line 96 of file MoveFileOptions.java.

96 {
97 JsonObject jsonObject = new JsonObject();
98 jsonObject.addProperty("newFile", newFile);
99 return jsonObject;
100 }

◆ toString()

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

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

Definition at line 103 of file MoveFileOptions.java.

103 {
104 StringBuilder builder = new StringBuilder();
105 builder.append("[");
106 builder.append("newFile=");
107 builder.append(newFile);
108 builder.append("]");
109 return builder.toString();
110 }

Member Data Documentation

◆ EMPTY_ARRAY

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

Definition at line 32 of file MoveFileOptions.java.

◆ EMPTY_LIST

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

Definition at line 34 of file MoveFileOptions.java.


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