Package org.jruby.lexer.yacc
Class SimpleSourcePosition
java.lang.Object
org.jruby.lexer.yacc.SimpleSourcePosition
- All Implemented Interfaces:
ISourcePosition
,PositionAware
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleSourcePosition
-
-
Method Details
-
getFile
Description copied from interface:ISourcePosition
Which file does this source position live in?- Specified by:
getFile
in interfaceISourcePosition
- Specified by:
getFile
in interfacePositionAware
- Returns:
- name of the source file.
-
getLine
public int getLine()Description copied from interface:ISourcePosition
Which is the first(start) line that this source position occurs on (zero-based)- Specified by:
getLine
in interfaceISourcePosition
- Specified by:
getLine
in interfacePositionAware
- Returns:
-
toString
-