Class: GirFFI::Builders::ErrorArgumentBuilder
Overview
Implements argument processing for error handling arguments. These arguments are not part of the introspected signature, but their presence is indicated by the ‘throws’ attribute of the function.
Constant Summary
BaseArgumentBuilder::KEYWORDS
Instance Attribute Summary
#arginfo, #array_arg, #length_arg
Instance Method Summary
collapse
#argument_class_name, #array_length_idx, #call_argument_name, #closure=, #closure?, #direction, #initialize, #name, #new_variable, #safe, #specialized_type_tag, #type_info
Instance Method Details
#capture_variable_name ⇒ Object
17
18
19
|
# File 'lib/gir_ffi/builders/error_argument_builder.rb', line 17
def capture_variable_name
nil
end
|
#method_argument_name ⇒ Object
9
10
11
|
# File 'lib/gir_ffi/builders/error_argument_builder.rb', line 9
def method_argument_name
nil
end
|
#post_conversion ⇒ Object
25
26
27
|
# File 'lib/gir_ffi/builders/error_argument_builder.rb', line 25
def post_conversion
["GirFFI::ArgHelper.check_error(#{call_argument_name})"]
end
|
#pre_conversion ⇒ Object
21
22
23
|
# File 'lib/gir_ffi/builders/error_argument_builder.rb', line 21
def pre_conversion
["#{call_argument_name} = FFI::MemoryPointer.new(:pointer).write_pointer nil"]
end
|
#return_value_name ⇒ Object
13
14
15
|
# File 'lib/gir_ffi/builders/error_argument_builder.rb', line 13
def return_value_name
nil
end
|