public class SimpleSourcePosition extends Object implements ISourcePosition
INVALID_POSITION
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()
Get the line number for the method.
|
int |
getStartLine()
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 getStartLine()
ISourcePosition
getStartLine
in interface ISourcePosition
public int getLine()
PositionAware
getLine
in interface PositionAware
Copyright © 2001–2015 JRuby. All rights reserved.