Class: Rjb::Rjb_JavaProxy

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

Instance Method Summary collapse

Methods included from JMethod

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

Instance Method Details

#java_methodsObject



90
91
92
93
94
95
96
# File 'lib/rjb.rb', line 90

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



85
86
87
88
89
# File 'lib/rjb.rb', line 85

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

#public_methods(inh = true) ⇒ Object



80
81
82
83
84
# File 'lib/rjb.rb', line 80

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