summaryrefslogtreecommitdiff
path: root/sources/ch/epfl/lamp/util/AbstractSourceFile.java
blob: d153e1c8a5405abdf6ad2785ca9ff6de2baf9e9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package ch.epfl.lamp.util;

public interface AbstractSourceFile {
    /** Returns the name of this source file. */
    String name() ;

    /** Returns the short name (name without path) of this source file. */
    String getShortName() ;

    /**
     * Returns an instance of Position representing the given line and
     * column of this source file.
     */
    Position getPosition( int line, int column ) ;

    /** Returns the content of the given line. */
    String getLine(int line) ;

    /** Returns the name of this source file. */
    String toString() ;

}