summaryrefslogtreecommitdiff
path: root/src/main/java/org/javacs/SourceRange.java
blob: 65c1aee3b9e0774bbd31e4fd885e7a52c35dbbcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.javacs;

import java.net.URI;
import java.util.Optional;

public class SourceRange {
    public final URI file;
    public final int startLine, startCol, endLine, endCol;
    public final Optional<String> className, memberName;

    public SourceRange(
            URI file,
            int startLine,
            int startCol,
            int endLine,
            int endCol,
            Optional<String> className,
            Optional<String> memberName) {
        this.file = file;
        this.startLine = startLine;
        this.startCol = startCol;
        this.endLine = endLine;
        this.endCol = endCol;
        this.className = className;
        this.memberName = memberName;
    }
}