Class: Rsense::Server::Command::TypeInferenceMethod
- Inherits:
-
Java::org.cx4a.rsense.typing.runtime::SpecialMethod
- Object
- Java::org.cx4a.rsense.typing.runtime::SpecialMethod
- Rsense::Server::Command::TypeInferenceMethod
- Defined in:
- lib/rsense/server/command/type_inference_method.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
Instance Method Summary collapse
- #call(runtime, receivers, args, blcck, result) ⇒ Object
-
#initialize ⇒ TypeInferenceMethod
constructor
A new instance of TypeInferenceMethod.
Constructor Details
#initialize ⇒ TypeInferenceMethod
Returns a new instance of TypeInferenceMethod.
12 13 14 |
# File 'lib/rsense/server/command/type_inference_method.rb', line 12 def initialize super end |
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context.
10 11 12 |
# File 'lib/rsense/server/command/type_inference_method.rb', line 10 def context @context end |
Instance Method Details
#call(runtime, receivers, args, blcck, result) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rsense/server/command/type_inference_method.rb', line 16 def call(runtime, receivers, args, blcck, result) receivers.each do |receiver| @context.typeSet.add(receiver) end result.setResultTypeSet(receivers) result.setNeverCallAgain(true) end |