Top Description Methods
org.jruby.lexer.yacc

public Interface ISourcePosition

extends PositionAware
Known Direct Implementers
org.jruby.lexer.yacc.SimpleSourcePosition
Imports
org.jruby.runtime.PositionAware

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 ).

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

name of the source file.
getFile
()

Redeclares org.jruby.runtime.PositionAware.getFile.

Which file does this source position live in?

public int
getLine()

Redeclares org.jruby.runtime.PositionAware.getLine.

Which is the first(start) line that this source position occurs on (zero-based)

Method Detail

getFileback to summary
public String getFile()

Redeclares org.jruby.runtime.PositionAware.getFile.

Which file does this source position live in?

Returns:String

name of the source file.

getLineback to summary
public int getLine()

Redeclares org.jruby.runtime.PositionAware.getLine.

Which is the first(start) line that this source position occurs on (zero-based)