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:ISourcePositionWhich file does this source position live in?- Specified by:
getFilein interfaceISourcePosition- Specified by:
getFilein interfacePositionAware- Returns:
- name of the source file.
-
getLine
public int getLine()Description copied from interface:ISourcePositionWhich is the first(start) line that this source position occurs on (zero-based)- Specified by:
getLinein interfaceISourcePosition- Specified by:
getLinein interfacePositionAware- Returns:
-
toString
-