Package org.jruby.lexer.yacc
Class SimpleSourcePosition
java.lang.Object
org.jruby.lexer.yacc.SimpleSourcePosition
- All Implemented Interfaces:
ISourcePosition,PositionAware
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
filename
-
line
final int line
-
-
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:
- the line number for the method
-
toString
-