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 CelSourceLocationNONE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(CelSourceLocation other)abstract intgetColumn()abstract intgetLine()static CelSourceLocationof(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:
compareToin interfacejava.lang.Comparable<CelSourceLocation>
-
of
public static CelSourceLocation of(int line, int column)
-
-