Interface SourceLocationBound

All Known Subinterfaces:
HierarchicalSourceReader, LexicalElement, SourceReader
All Known Implementing Classes:
AbstractLexicalElement, BasicLexicalElement, GenericHierarchicalSourceReader, GenericSourceReader

public interface SourceLocationBound
Any object that is some way bound to a location of the BASIC program. The bounding relation is manifested via the name of the BASIC source file, the line number and the character position on that line.
Author:
Peter Verhas June 15, 2012
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getFileName()
    Get the name of the file to which the object is bound to.
    int getLineNumber()
    Get the line number to which the object is bound to.
    int getPosition()
    Get the position on the line to which the object is bound to.
  • Method Details

    • getFileName

      java.lang.String getFileName()
      Get the name of the file to which the object is bound to.
      Returns:
      the name of the file
    • getLineNumber

      int getLineNumber()
      Get the line number to which the object is bound to.
      Returns:
      the line number in the file
    • getPosition

      int getPosition()
      Get the position on the line to which the object is bound to.
      Returns:
      the position within the line