Class: Rjb::Rjb_JavaProxy

Inherits:
Object
  • Object
show all
Includes:
JMethod
Defined in:
lib/rjb.rb,
lib/rjb/list.rb

Instance Method Summary collapse

Methods included from JMethod

#format_sigs, #instance_method?, #jmethods, #public_method?

Instance Method Details

#initialize_proxyObject



93
94
# File 'lib/rjb.rb', line 93

def initialize_proxy
end

#java_methodsObject



105
106
107
108
109
110
111
# File 'lib/rjb.rb', line 105

def java_methods
  jmethods([], getClass) do |m|
    instance_method?(m) && public_method?(m)
  end.map do |m|
    "#{m}(#{format_sigs(getClass.sigs(m))})"
  end
end

#methods(inh = true) ⇒ Object



100
101
102
103
104
# File 'lib/rjb.rb', line 100

def methods(inh = true)
  jmethods(super(inh), getClass) do |m|
    instance_method?(m) && public_method?(m)
  end
end

#public_methods(inh = true) ⇒ Object



95
96
97
98
99
# File 'lib/rjb.rb', line 95

def public_methods(inh = true)
  jmethods(super(inh), getClass) do |m|
    instance_method?(m) && public_method?(m)
  end
end