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, #make_snake, #public_method?, #rjb_respond_to?

Instance Method Details

#initialize_proxyObject



155
156
# File 'lib/rjb.rb', line 155

def initialize_proxy
end

#java_methodsObject



167
168
169
170
171
172
173
# File 'lib/rjb.rb', line 167

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



162
163
164
165
166
# File 'lib/rjb.rb', line 162

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

#public_methods(inh = true) ⇒ Object



157
158
159
160
161
# File 'lib/rjb.rb', line 157

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

#respond_to?(sym, priv = false) ⇒ Boolean

Returns:

  • (Boolean)


174
175
176
# File 'lib/rjb.rb', line 174

def respond_to?(sym, priv = false)
  rjb_respond_to?(sym, false, priv)
end