Source code: javax/ide/model/java/source/util/SourcePosition.java
1 /*
2 * @(#)SourcePosition.java
3 */
4
5 package javax.ide.model.java.source.util;
6
7 import java.net.URI;
8
9 /**
10 * Works like TreeTraversal but only visits a single node.
11 *
12 * @author Cedric Dandoy, Andy Yu
13 */
14 public interface SourcePosition
15 {
16 // ----------------------------------------------------------------------
17
18 /**
19 * Gets the column number of this position.
20 *
21 * @return The column number of this position.
22 */
23 public int column();
24
25 /**
26 * Gets the line number of this position.
27 *
28 * @return The line number of this position.
29 */
30 public int line();
31
32 /**
33 * Gets the file of this position.
34 *
35 * @return The URI for the file of this position.
36 */
37 public URI file();
38 }