Package com.scriptbasic.interfaces
Interface SourceLocationBound
-
- All Known Subinterfaces:
HierarchicalSourceReader,LexicalElement,SourceReader
- All Known Implementing Classes:
AbstractLexicalElement,BasicLexicalElement,GenericHierarchicalSourceReader,GenericSourceReader
public interface SourceLocationBoundAny 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetFileName()Get the name of the file to which the object is bound to.intgetLineNumber()Get the line number to which the object is bound to.intgetPosition()Get the position on the line to which the object is bound to.
-
-
-
Method Detail
-
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
-
-