public class SimpleSourcePosition extends Object implements ISourcePosition
Constructor and Description |
---|
SimpleSourcePosition(String filename,
int line) |
Modifier and Type | Method and Description |
---|---|
String |
getFile()
Which file does this source position live in?
|
int |
getLine()
Which is the first(start) line that this source position occurs on (zero-based)
|
String |
toString() |
public SimpleSourcePosition(String filename, int line)
public String getFile()
ISourcePosition
getFile
in interface ISourcePosition
getFile
in interface PositionAware
public int getLine()
ISourcePosition
getLine
in interface ISourcePosition
getLine
in interface PositionAware
Copyright © 2001-2016 JRuby. All Rights Reserved.