Class SourceLocation
java.lang.Object
me.topchetoeu.j2s.common.Location
me.topchetoeu.j2s.compilation.parsing.SourceLocation
- All Implemented Interfaces:
Comparable<me.topchetoeu.j2s.common.Location>
public class SourceLocation
extends me.topchetoeu.j2s.common.Location
-
Field Summary
Fields inherited from class me.topchetoeu.j2s.common.Location
INTERNAL
-
Constructor Summary
ConstructorsConstructorDescriptionSourceLocation
(me.topchetoeu.j2s.common.Filename filename, int[] lineStarts, int offset) -
Method Summary
Methods inherited from class me.topchetoeu.j2s.common.Location
add, nextLine, nextLine, of, of, toString
-
Constructor Details
-
SourceLocation
public SourceLocation(me.topchetoeu.j2s.common.Filename filename, int[] lineStarts, int offset)
-
-
Method Details
-
filename
public me.topchetoeu.j2s.common.Filename filename()- Specified by:
filename
in classme.topchetoeu.j2s.common.Location
-
line
public int line()- Specified by:
line
in classme.topchetoeu.j2s.common.Location
-
start
public int start()- Specified by:
start
in classme.topchetoeu.j2s.common.Location
-
hashCode
public int hashCode()- Overrides:
hashCode
in classme.topchetoeu.j2s.common.Location
-
compareTo
public int compareTo(me.topchetoeu.j2s.common.Location other) - Specified by:
compareTo
in interfaceComparable<me.topchetoeu.j2s.common.Location>
- Overrides:
compareTo
in classme.topchetoeu.j2s.common.Location
-
equals
- Overrides:
equals
in classme.topchetoeu.j2s.common.Location
-