|
| 1 | +/** |
| 2 | + * Copyright (c) 2015-2017 Angelo ZERR. |
| 3 | + * All rights reserved. This program and the accompanying materials |
| 4 | + * are made available under the terms of the Eclipse Public License v1.0 |
| 5 | + * which accompanies this distribution, and is available at |
| 6 | + * http://www.eclipse.org/legal/epl-v10.html |
| 7 | + * |
| 8 | + * Contributors: |
| 9 | + * Angelo Zerr <angelo.zerr@gmail.com> - initial API and implementation |
| 10 | + */ |
| 11 | +package ts.client.navto; |
| 12 | + |
| 13 | +import ts.client.Location; |
| 14 | + |
| 15 | +/** |
| 16 | + * An item found in a navto response. |
| 17 | + */ |
| 18 | +public class NavtoItem { |
| 19 | + |
| 20 | + /** |
| 21 | + * The symbol's name. |
| 22 | + */ |
| 23 | + private String name; |
| 24 | + |
| 25 | + /** |
| 26 | + * The symbol's kind (such as 'className' or 'parameterName'). |
| 27 | + */ |
| 28 | + private String kind; |
| 29 | + |
| 30 | + /** |
| 31 | + * exact, substring, or prefix. |
| 32 | + */ |
| 33 | + private String matchKind; |
| 34 | + |
| 35 | + /** |
| 36 | + * If this was a case sensitive or insensitive match. |
| 37 | + */ |
| 38 | + private Boolean isCaseSensitive; |
| 39 | + |
| 40 | + /** |
| 41 | + * Optional modifiers for the kind (such as 'public'). |
| 42 | + */ |
| 43 | + private String kindModifiers; |
| 44 | + |
| 45 | + /** |
| 46 | + * The file in which the symbol is found. |
| 47 | + */ |
| 48 | + private String file; |
| 49 | + |
| 50 | + /** |
| 51 | + * The location within file at which the symbol is found. |
| 52 | + */ |
| 53 | + private Location start; |
| 54 | + |
| 55 | + /** |
| 56 | + * One past the last character of the symbol. |
| 57 | + */ |
| 58 | + private Location end; |
| 59 | + |
| 60 | + /** |
| 61 | + * Name of symbol's container symbol (if any); for example, the class name if |
| 62 | + * symbol is a class member. |
| 63 | + */ |
| 64 | + private String containerName; |
| 65 | + |
| 66 | + /** |
| 67 | + * Kind of symbol's container symbol (if any). |
| 68 | + */ |
| 69 | + private String containerKind; |
| 70 | + |
| 71 | + public String getName() { |
| 72 | + return name; |
| 73 | + } |
| 74 | + |
| 75 | + public String getKind() { |
| 76 | + return kind; |
| 77 | + } |
| 78 | + |
| 79 | + public String getMatchKind() { |
| 80 | + return matchKind; |
| 81 | + } |
| 82 | + |
| 83 | + public Boolean getIsCaseSensitive() { |
| 84 | + return isCaseSensitive; |
| 85 | + } |
| 86 | + |
| 87 | + public String getKindModifiers() { |
| 88 | + return kindModifiers; |
| 89 | + } |
| 90 | + |
| 91 | + public String getFile() { |
| 92 | + return file; |
| 93 | + } |
| 94 | + |
| 95 | + public Location getStart() { |
| 96 | + return start; |
| 97 | + } |
| 98 | + |
| 99 | + public Location getEnd() { |
| 100 | + return end; |
| 101 | + } |
| 102 | + |
| 103 | + public String getContainerName() { |
| 104 | + return containerName; |
| 105 | + } |
| 106 | + |
| 107 | + public String getContainerKind() { |
| 108 | + return containerKind; |
| 109 | + } |
| 110 | + |
| 111 | +} |
0 commit comments