jruby/docs BETA
Navigation
org.jruby.runtime 95
I Accessor
C ArgfSites
C ArgumentDescriptor
E ArgumentType
C Arity
C Array2Sites
C ArraySites
C BasicObjectSites
C BigDecimalSites
C BignumSites
C Binding
C Block
C BlockBody
I BlockCallback
C Builtins
C CallBlock
C CallBlock19
C CallSite
C CallTraceFuncHook
E CallType
C CheckedSites
E ClassIndex
C ComparableSites
C CompiledIRBlockBody
C ComplexSites
C ConditionVariableSites
C Constants
C ContextAwareBlockBody
C Copy
C DateSites
C DigestSites
C DynamicScope
C EnumerableSites
C EventHook
I ExecutionContext
C FiberSites
C FileSites
C FixnumSites
C FloatSites
C Frame
C GlobalVariable
C HashSites
C Helpers
C HelpersSites
I IAccessor
C IOSites
C IRBlockBody
C IRRuntimeHelpersSites
C IntegerSites
C InterpretedIRBlockBody
C JavaInternalBlockBody
C JavaSites
C KernelSites
C MarshalSites
C MethodBlockBody
C MethodFactory
C MethodIndex
C MethodMissingWrapper
C MethodSites
C MixedModeIRBlockBody
C ModuleSites
C MonitorSites
C NullBlockBody
C NumericSites
I ObjectAllocator
I ObjectMarshal
C ObjectSites
C ObjectSpace
C PathnameSites
I PositionAware
C ProcSites
C ProducerSites
C RaiseExceptionSites
C RangeSites
C RationalSites
C ReadonlyGlobalVariable
I RecursiveFunctionEx
E Rest
E RubyEvent
C SetSites
C Signature
I SimpleHash
C StringSites
C StructSites
C SymbolSites
C TempfileSites
C ThreadContext
C TimeSites
C TraceEventManager
C TracePointSites
E Type
C TypeConverterSites
E Visibility
C WarningSites
C ZlibSites
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