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

    Constructors
    Constructor
    Description
    SourceLocation(me.topchetoeu.j2s.common.Filename filename, int[] lineStarts, int offset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    compareTo(me.topchetoeu.j2s.common.Location other)
     
    boolean
     
    me.topchetoeu.j2s.common.Filename
     
    int
     
    int
     
    int
     

    Methods inherited from class me.topchetoeu.j2s.common.Location

    add, nextLine, nextLine, of, of, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 class me.topchetoeu.j2s.common.Location
    • line

      public int line()
      Specified by:
      line in class me.topchetoeu.j2s.common.Location
    • start

      public int start()
      Specified by:
      start in class me.topchetoeu.j2s.common.Location
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class me.topchetoeu.j2s.common.Location
    • compareTo

      public int compareTo(me.topchetoeu.j2s.common.Location other)
      Specified by:
      compareTo in interface Comparable<me.topchetoeu.j2s.common.Location>
      Overrides:
      compareTo in class me.topchetoeu.j2s.common.Location
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class me.topchetoeu.j2s.common.Location