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



125
126
# File 'lib/rjb.rb', line 125

def initialize_proxy
end

#java_methodsObject



137
138
139
140
141
142
143
# File 'lib/rjb.rb', line 137

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



132
133
134
135
136
# File 'lib/rjb.rb', line 132

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

#public_methods(inh = true) ⇒ Object



127
128
129
130
131
# File 'lib/rjb.rb', line 127

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