| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2014, the Dart project authors. | |
| 3 * | |
| 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 | |
| 6 * | |
| 7 * http://www.eclipse.org/legal/epl-v10.html | |
| 8 * | |
| 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 | |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | |
| 12 * the License. | |
| 13 */ | |
| 14 package com.google.dart.server; | |
| 15 | |
| 16 import com.google.dart.server.generated.types.Element; | |
| 17 | |
| 18 /** | |
| 19 * The interface {@code Outline} defines the behavior of objects that represent
an outline for an | |
| 20 * element. | |
| 21 * | |
| 22 * @coverage dart.server | |
| 23 */ | |
| 24 public interface Outline { | |
| 25 /** | |
| 26 * An empty array of outlines. | |
| 27 */ | |
| 28 Outline[] EMPTY_ARRAY = new Outline[0]; | |
| 29 | |
| 30 /** | |
| 31 * Check if <code>offset</code> is in [elementOffset, elementOffset + elementL
ength] interval. | |
| 32 */ | |
| 33 public boolean containsInclusive(int offset); | |
| 34 | |
| 35 /** | |
| 36 * Return an array containing the children outline. The array will be empty if
the outline has no | |
| 37 * children. | |
| 38 * | |
| 39 * @return an array containing the children of the element | |
| 40 */ | |
| 41 public Outline[] getChildren(); | |
| 42 | |
| 43 /** | |
| 44 * A description of the element represented by this node. | |
| 45 * | |
| 46 * @return the {@link Element} | |
| 47 */ | |
| 48 public Element getElement(); | |
| 49 | |
| 50 /** | |
| 51 * Return the length of the element. | |
| 52 * | |
| 53 * @return the length of the element | |
| 54 */ | |
| 55 public int getLength(); | |
| 56 | |
| 57 /** | |
| 58 * Return the offset of the first character of the element. | |
| 59 * | |
| 60 * @return the offset of the first character of the element | |
| 61 */ | |
| 62 public int getOffset(); | |
| 63 | |
| 64 /** | |
| 65 * Return the outline that either physically or logically encloses this outlin
e. This will be | |
| 66 * {@code null} if this outline is a unit outline. | |
| 67 * | |
| 68 * @return the outline that encloses this outline | |
| 69 */ | |
| 70 public Outline getParent(); | |
| 71 | |
| 72 } | |
| OLD | NEW |