Class SourceInfo

java.lang.Object
com.twineworks.tweakflow.lang.parse.SourceInfo

public class SourceInfo extends Object
  • Constructor Details

    • SourceInfo

      public SourceInfo(ParseUnit parseUnit, int line, int charWithinLine, int sourceIdxStart, int sourceIdxEnd)
  • Method Details

    • getParseUnit

      public ParseUnit getParseUnit()
    • setParseUnit

      public void setParseUnit(ParseUnit parseUnit)
    • getLine

      public int getLine()
    • setLine

      public SourceInfo setLine(int line)
    • getCharWithinLine

      public int getCharWithinLine()
    • setCharWithinLine

      public SourceInfo setCharWithinLine(int charWithinLine)
    • copy

      public SourceInfo copy()
    • getSourceIdxStart

      public int getSourceIdxStart()
    • setSourceIdxStart

      public SourceInfo setSourceIdxStart(int sourceIdxStart)
    • getSourceIdxEnd

      public int getSourceIdxEnd()
    • setSourceIdxEnd

      public SourceInfo setSourceIdxEnd(int sourceIdxEnd)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFullLocation

      public String getFullLocation()
    • getShortLocation

      public String getShortLocation()
    • getLineLocationMarker

      public String getLineLocationMarker()
    • getSourceCode

      public String getSourceCode()
    • getSourceCodeLine

      public String getSourceCodeLine()
    • precedes

      public boolean precedes(SourceInfo other)
    • encloses

      public boolean encloses(int atLine, int atChar)