class FFIGen::PointerType
Attributes
depth[R]
pointee_name[R]
pointee_type[R]
Public Class Methods
new(pointee_type, pointee_name, depth)
click to toggle source
# File lib/ffi_gen.rb, line 250 def initialize(pointee_type, pointee_name, depth) @pointee_type = pointee_type @pointee_name = pointee_name @depth = depth end
Public Instance Methods
java_description()
click to toggle source
# File lib/ffi_gen/java_output.rb, line 359 def java_description "FFI::Pointer(#{'*' * @depth}#{@pointee_name ? @pointee_name.to_java_classname : ''})" end
java_jna_type()
click to toggle source
# File lib/ffi_gen/java_output.rb, line 355 def java_jna_type "Pointer" end
java_name()
click to toggle source
# File lib/ffi_gen/java_output.rb, line 351 def java_name @pointee_name.to_java_downcase end
name()
click to toggle source
# File lib/ffi_gen.rb, line 256 def name @pointee_name end
ruby_description()
click to toggle source
# File lib/ffi_gen/ruby_output.rb, line 286 def ruby_description "FFI::Pointer(#{'*' * @depth}#{@pointee_name ? @pointee_name.to_ruby_classname : ''})" end
ruby_ffi_type()
click to toggle source
# File lib/ffi_gen/ruby_output.rb, line 282 def ruby_ffi_type ":pointer" end
ruby_name()
click to toggle source
# File lib/ffi_gen/ruby_output.rb, line 278 def ruby_name @pointee_name.to_ruby_downcase end