jruby/docs BETA
Navigation
org.jruby.anno 15
C AnnotationBinder
C AnnotationHelper
A Coercion
E CoercionType
C ExecutableElementDescriptor
E FrameField
C IndyBinder
C InvokerGenerator
A JRubyClass
A JRubyConstant
A JRubyMethod
A JRubyModule
C JavaMethodDescriptor
C MethodDescriptor
C TypePopulator
MethodDescriptor — members 19
F IRUBYOBJECT_ARRAY_CLASS_NAME() String
F isStatic() boolean
F hasContext() boolean
F hasBlock() boolean
F hasVarArgs() boolean
F actualRequired() int
F arity() int
F required() int
F optional() int
F rest() boolean
F anno() JRubyMethod
F modifiers() int
F declaringClassName() String
F declaringClassPath() String
F name() String
F rubyName() String
F MAX_REQUIRED_UNBOXED_ARITY() int
C new(method_object)
M calculate_specific_call_arity() int

org.jruby.anno.MethodDescriptor

class abstract 19 members

Constants

constanttypenote
IRUBYOBJECT_ARRAY_CLASS_NAME String
MAX_REQUIRED_UNBOXED_ARITY int

Fields

fieldtypenote
isStatic boolean
hasContext boolean
hasBlock boolean
hasVarArgs boolean
actualRequired int
arity int
required int
optional int
rest boolean
anno JRubyMethod
modifiers int
declaringClassName String
declaringClassPath String
name String
rubyName String

Constructors

new

new ( T method_object )
Java: <init>(T methodObject)

Instance Methods

calculate_specific_call_arity

int calculate_specific_call_arity ( )
Java: calculateSpecificCallArity()

Returns a value useful for number of arguments we need for arity when generating call methods used by invokers and the JIT. Note: MAX_REQUIRED_UNBOXED_ARITY looks like some tweakable setting but it is merely for documentation. All our non-generated internal code is also locked to the same specific arities so we cannot just change this value and be happy.

Returns: arity value of specific required arity which can be used as an unboxed call or -1 for all other cases.