Package org.jruby.runtime
Interface PositionAware
- All Known Subinterfaces:
ISourcePosition
- All Known Implementing Classes:
AbstractIRMethod
,CompiledIRMethod
,CompiledIRNoProtocolMethod
,DefineMethodMethod
,InterpretedIRBodyMethod
,InterpretedIRMethod
,MixedModeIRMethod
,ProcMethod
,SimpleSourcePosition
public interface PositionAware
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
-
Method Details
-
getFile
String getFile()Get the filename for the method.- Returns:
- the filename for the method
-
getLine
int getLine()Get the line number for the method. 0-based (ie. line 1 returns a 0)- Returns:
- the line number for the method
-