Top Description Methods
org.jruby.runtime

public Interface PositionAware

Known Direct Subinterfaces
org.jruby.lexer.yacc.ISourcePosition
Known Direct Implementers
org.jruby.internal.runtime.AbstractIRMethod, org.jruby.internal.runtime.methods.ProcMethod

Simple no-pojo methods for Position of a method (in truth we could use this anywhere). Simpler string and int does not require using ISourcePosition, which is nicer for the

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the filename for the method
getFile
()

Get the filename for the method.

public int

Returns:

the line number for the method
getLine
()

Get the line number for the method.

Method Detail

getFileback to summary
public String getFile()

Get the filename for the method.

Returns:String

the filename for the method

getLineback to summary
public int getLine()

Get the line number for the method. 0-based (ie. line 1 returns a 0)

Returns:int

the line number for the method