Class: BiteScript::ASM::MethodMirror
- Inherits:
-
Object
- Object
- BiteScript::ASM::MethodMirror
- Defined in:
- lib/bitescript/mirror.rb
Instance Attribute Summary collapse
-
#argument_types ⇒ Object
readonly
Returns the value of attribute argument_types.
-
#declaring_class ⇒ Object
readonly
Returns the value of attribute declaring_class.
-
#exception_types ⇒ Object
readonly
Returns the value of attribute exception_types.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Attributes included from Modifiers
Instance Method Summary collapse
-
#initialize(klass, flags, return_type, name, parameters, exceptions) ⇒ MethodMirror
constructor
A new instance of MethodMirror.
- #inspect ⇒ Object
Methods included from Annotated
#addAnnotation, #annotations, #declaredAnnotations, #getDeclaredAnnotation, #inspect_annotations
Methods included from Modifiers
Constructor Details
#initialize(klass, flags, return_type, name, parameters, exceptions) ⇒ MethodMirror
Returns a new instance of MethodMirror.
348 349 350 351 352 353 354 355 |
# File 'lib/bitescript/mirror.rb', line 348 def initialize(klass, flags, return_type, name, parameters, exceptions) @flags = flags @declaring_class = klass @name = name @return_type = return_type @argument_types = parameters @exception_types = exceptions end |
Instance Attribute Details
#argument_types ⇒ Object (readonly)
Returns the value of attribute argument_types.
347 348 349 |
# File 'lib/bitescript/mirror.rb', line 347 def argument_types @argument_types end |
#declaring_class ⇒ Object (readonly)
Returns the value of attribute declaring_class.
346 347 348 |
# File 'lib/bitescript/mirror.rb', line 346 def declaring_class @declaring_class end |
#exception_types ⇒ Object (readonly)
Returns the value of attribute exception_types.
347 348 349 |
# File 'lib/bitescript/mirror.rb', line 347 def exception_types @exception_types end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
346 347 348 |
# File 'lib/bitescript/mirror.rb', line 346 def name @name end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
346 347 348 |
# File 'lib/bitescript/mirror.rb', line 346 def return_type @return_type end |
Instance Method Details
#inspect ⇒ Object
357 358 359 360 361 362 363 364 365 |
# File 'lib/bitescript/mirror.rb', line 357 def inspect "%s%s%s %s(%s);" % [ inspect_annotations, modifier_string, return_type.class_name, name, argument_types.map {|x| x.class_name}.join(', '), ] end |