Class: Mirah::JVM::Types::Intrinsic
- Inherits:
-
Object
- Object
- Mirah::JVM::Types::Intrinsic
- Includes:
- ArgumentConversion
- Defined in:
- lib/mirah/jvm/types/methods.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#argument_types ⇒ Object
readonly
Returns the value of attribute argument_types.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#return_type ⇒ Object
readonly
Returns the value of attribute return_type.
Instance Method Summary collapse
- #abstract? ⇒ Boolean
- #call(builder, ast, expression, *args) ⇒ Object
- #constructor? ⇒ Boolean
- #declaring_class ⇒ Object
- #exceptions ⇒ Object
- #field? ⇒ Boolean
-
#initialize(klass, name, args, type, &block) ⇒ Intrinsic
constructor
A new instance of Intrinsic.
- #varargs? ⇒ Boolean
Methods included from ArgumentConversion
Constructor Details
#initialize(klass, name, args, type, &block) ⇒ Intrinsic
Returns a new instance of Intrinsic.
73 74 75 76 77 78 79 80 |
# File 'lib/mirah/jvm/types/methods.rb', line 73 def initialize(klass, name, args, type, &block) raise ArgumentError, "Block required" unless block_given? @class = klass @name = name @argument_types = args @return_type = type @block = block end |
Instance Attribute Details
#argument_types ⇒ Object (readonly)
Returns the value of attribute argument_types.
71 72 73 |
# File 'lib/mirah/jvm/types/methods.rb', line 71 def argument_types @argument_types end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
71 72 73 |
# File 'lib/mirah/jvm/types/methods.rb', line 71 def name @name end |
#return_type ⇒ Object (readonly)
Returns the value of attribute return_type.
71 72 73 |
# File 'lib/mirah/jvm/types/methods.rb', line 71 def return_type @return_type end |
Instance Method Details
#abstract? ⇒ Boolean
98 99 100 |
# File 'lib/mirah/jvm/types/methods.rb', line 98 def abstract? false end |
#call(builder, ast, expression, *args) ⇒ Object
82 83 84 |
# File 'lib/mirah/jvm/types/methods.rb', line 82 def call(builder, ast, expression, *args) @block.call(builder, ast, expression, *args) end |
#constructor? ⇒ Boolean
90 91 92 |
# File 'lib/mirah/jvm/types/methods.rb', line 90 def constructor? false end |
#declaring_class ⇒ Object
86 87 88 |
# File 'lib/mirah/jvm/types/methods.rb', line 86 def declaring_class @class end |
#exceptions ⇒ Object
102 103 104 |
# File 'lib/mirah/jvm/types/methods.rb', line 102 def exceptions [] end |
#field? ⇒ Boolean
94 95 96 |
# File 'lib/mirah/jvm/types/methods.rb', line 94 def field? false end |
#varargs? ⇒ Boolean
106 107 108 |
# File 'lib/mirah/jvm/types/methods.rb', line 106 def varargs? false end |