|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jruby.lexer.yacc.SimpleSourcePosition
public class SimpleSourcePosition
| Field Summary |
|---|
| Fields inherited from interface org.jruby.lexer.yacc.ISourcePosition |
|---|
INVALID_POSITION |
| Constructor Summary | |
|---|---|
SimpleSourcePosition(java.lang.String filename,
int line)
|
|
| Method Summary | |
|---|---|
java.lang.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) |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSourcePosition(java.lang.String filename,
int line)
| Method Detail |
|---|
public java.lang.String getFile()
ISourcePosition
getFile in interface ISourcePositiongetFile in interface PositionAwarepublic int getStartLine()
ISourcePosition
getStartLine in interface ISourcePositionpublic int getLine()
PositionAware
getLine in interface PositionAwarepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||