Package dev.cel.common.internal
Class Errors.SourceLocation
- java.lang.Object
-
- dev.cel.common.internal.Errors.SourceLocation
-
- Enclosing class:
- Errors
@Immutable public abstract static class Errors.SourceLocation extends java.lang.ObjectSourceLocation gives the line and column where an expression starts.
-
-
Constructor Summary
Constructors Constructor Description SourceLocation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intcolumn()Return the column where the source starts.abstract intline()Return the line where the source appears.static Errors.SourceLocationof(int line, int column)Create a newSourceLocationfromlineandcolumn.
-
-
-
Method Detail
-
line
public abstract int line()
Return the line where the source appears.
-
column
public abstract int column()
Return the column where the source starts.
-
of
public static Errors.SourceLocation of(int line, int column)
Create a newSourceLocationfromlineandcolumn.
-
-