jruby/docs BETA
Navigation
org.jruby.runtime 44
I Accessor
C ArgumentDescriptor
E ArgumentType
C Arity
C Binding
C Block
C BlockBody
I BlockCallback
C Builtins
C CallBlock
C CallBlock19
C CallSite
E CallType
E ClassIndex
C CompiledIRBlockBody
C Constants
C ContextAwareBlockBody
C DynamicScope
C EventHook
I ExecutionContext
C Frame
C GlobalVariable
C Helpers
I IAccessor
C IRBlockBody
C InterpretedIRBlockBody
C JavaInternalBlockBody
C JavaSites
C MethodBlockBody
C MethodFactory
C MethodIndex
C MixedModeIRBlockBody
C NullBlockBody
I ObjectAllocator
I ObjectMarshal
C ObjectSpace
I PositionAware
C ReadonlyGlobalVariable
E RubyEvent
C Signature
I SimpleHash
C ThreadContext
C TraceEventManager
E Visibility
PositionAware — members 2
M file() String
M line() int

org.jruby.runtime.PositionAware

interface abstract 2 members

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

Instance Methods

file

String file ( )
Java: getFile() · also: get_file

Get the filename for the method.

Returns: the filename for the method

line

int line ( )
Java: getLine() · also: get_line

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

Returns: the line number for the method