Class: FFIGen::ByValueType

Inherits:
Type
  • Object
show all
Defined in:
lib/ffi_gen.rb,
lib/ffi_gen/java_output.rb,
lib/ffi_gen/ruby_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#java_description, #ruby_description

Constructor Details

#initialize(inner_type) ⇒ ByValueType

Returns a new instance of ByValueType.



238
239
240
# File 'lib/ffi_gen.rb', line 238

def initialize(inner_type)
  @inner_type = inner_type
end

Instance Attribute Details

#inner_typeObject

Returns the value of attribute inner_type.



236
237
238
# File 'lib/ffi_gen.rb', line 236

def inner_type
  @inner_type
end

Instance Method Details

#java_jna_typeObject



345
346
347
# File 'lib/ffi_gen/java_output.rb', line 345

def java_jna_type
  "#{@inner_type.java_jna_type}.ByValue"
end

#java_nameObject



341
342
343
# File 'lib/ffi_gen/java_output.rb', line 341

def java_name
  @inner_type.java_name
end

#nameObject



242
243
244
# File 'lib/ffi_gen.rb', line 242

def name
  @inner_type.name
end

#ruby_ffi_typeObject



272
273
274
# File 'lib/ffi_gen/ruby_output.rb', line 272

def ruby_ffi_type
  "#{@inner_type.ruby_ffi_type}.by_value"
end

#ruby_nameObject



268
269
270
# File 'lib/ffi_gen/ruby_output.rb', line 268

def ruby_name
  @inner_type.ruby_name
end