helper class for completion results
| 6 | * helper class for completion results |
| 7 | */ |
| 8 | public 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 | } |
no test coverage detected