MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / Completion

Class Completion

src/main/java/fieldbox/execution/Completion.java:8–31  ·  view source on GitHub ↗

helper class for completion results

Source from the content-addressed store, hash-verified

6 * helper class for completion results
7 */
8public class Completion {
9 public int start, end;
10 public String replacewith;
11 public String info;
12 public String header;
13
14 public float rank = 0;
15
16 public String uuid = UUID.randomUUID().toString();
17 public int type; // used to differentiate between field and method
18
19 public Completion(int start, int end, String replacewith, String info) {
20 this.start = start;
21 this.end = end;
22 this.replacewith = replacewith;
23 this.info = info;
24// rank -= replacewith.length();
25 }
26
27 @Override
28 public String toString() {
29 return "comp<" + replacewith + " | " + info + "> @ "+rank;
30 }
31}

Callers 4

importsMethod · 0.50
completeMethod · 0.50
completionMethod · 0.50
importsMethod · 0.50

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected