| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014, the Dart project authors. | 2 * Copyright (c) 2014, the Dart project authors. |
| 3 * | 3 * |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
| 5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
| 6 * | 6 * |
| 7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
| 8 * | 8 * |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | 11 * or implied. See the License for the specific language governing permissions a
nd limitations under |
| 12 * the License. | 12 * the License. |
| 13 */ | 13 */ |
| 14 package com.google.dart.server; | 14 package com.google.dart.server; |
| 15 | 15 |
| 16 import com.google.dart.server.generated.types.Element; | 16 import com.google.dart.server.generated.types.Element; |
| 17 import com.google.dart.server.generated.types.Location; | 17 import com.google.dart.server.generated.types.Location; |
| 18 | 18 |
| 19 import java.util.List; |
| 20 |
| 19 /** | 21 /** |
| 20 * The interface {@code SearchResult} defines the behavior of objects that repre
sent a search | 22 * The interface {@code SearchResult} defines the behavior of objects that repre
sent a search |
| 21 * result. | 23 * result. |
| 22 * | 24 * |
| 23 * @coverage dart.server | 25 * @coverage dart.server |
| 24 */ | 26 */ |
| 25 public interface SearchResult { | 27 public interface SearchResult { |
| 26 /** | 28 /** |
| 27 * An empty array of {@link SearchResult}s. | 29 * An empty array of {@link SearchResult}s. |
| 28 */ | 30 */ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 41 * @return the location | 43 * @return the location |
| 42 */ | 44 */ |
| 43 public Location getLocation(); | 45 public Location getLocation(); |
| 44 | 46 |
| 45 /** | 47 /** |
| 46 * Return the path to this result starting with the element that encloses it,
then for its | 48 * Return the path to this result starting with the element that encloses it,
then for its |
| 47 * enclosing element, etc up to the library. | 49 * enclosing element, etc up to the library. |
| 48 * | 50 * |
| 49 * @return the path to this result | 51 * @return the path to this result |
| 50 */ | 52 */ |
| 51 public Element[] getPath(); | 53 public List<Element> getPath(); |
| 52 | 54 |
| 53 /** | 55 /** |
| 54 * Return {@code true} is this search result is a potential reference to a cla
ss member. | 56 * Return {@code true} is this search result is a potential reference to a cla
ss member. |
| 55 * | 57 * |
| 56 * @return {@code true} is this search result is a potential reference to a cl
ass member | 58 * @return {@code true} is this search result is a potential reference to a cl
ass member |
| 57 */ | 59 */ |
| 58 public boolean isPotential(); | 60 public boolean isPotential(); |
| 59 } | 61 } |
| OLD | NEW |