|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISourcePosition
This interface is the combination of two needs: 1) A Ruby interpreter position (for warnings and errors). The interpreter only cares about filename and endLine. 2) A IDE position (offsets for showing ranges of grammatical elements). The offsets represent positions 'between' characters. So a variable 'abc' has a startOffset of 0 and an endOffset of 3 ( 0a1b2c3 ).
| Field Summary | |
|---|---|
static ISourcePosition |
INVALID_POSITION
For nodes which are added to the AST which are not proper syntactical elements. |
| Method Summary | |
|---|---|
java.lang.String |
getFile()
Which file does this source position live in? |
int |
getStartLine()
Which is the first(start) line that this source position occurs on (zero-based) |
| Methods inherited from interface org.jruby.runtime.PositionAware |
|---|
getLine |
| Field Detail |
|---|
static final ISourcePosition INVALID_POSITION
| Method Detail |
|---|
java.lang.String getFile()
getFile in interface PositionAwareint getStartLine()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||