Package dev.cel.common
Class CelSourceLocation
- java.lang.Object
-
- dev.cel.common.CelSourceLocation
-
- All Implemented Interfaces:
java.lang.Comparable<CelSourceLocation>
@Immutable public abstract class CelSourceLocation extends java.lang.Object implements java.lang.Comparable<CelSourceLocation>
Represents a location withinCelSource
.
-
-
Field Summary
Fields Modifier and Type Field Description static CelSourceLocation
NONE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(CelSourceLocation other)
abstract int
getColumn()
abstract int
getLine()
static CelSourceLocation
of(int line, int column)
-
-
-
Field Detail
-
NONE
public static final CelSourceLocation NONE
-
-
Method Detail
-
getLine
public abstract int getLine()
-
getColumn
public abstract int getColumn()
-
compareTo
public final int compareTo(CelSourceLocation other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CelSourceLocation>
-
of
public static CelSourceLocation of(int line, int column)
-
-