Module: Rjb::JMethod
- Included in:
- Rjb_JavaClass, Rjb_JavaProxy
- Defined in:
- lib/rjb.rb
Instance Method Summary collapse
- #format_sigs(s) ⇒ Object
- #instance_method?(m) ⇒ Boolean
- #jmethods(org, klass, &blk) ⇒ Object
- #public_method?(m) ⇒ Boolean
Instance Method Details
#format_sigs(s) ⇒ Object
89 90 91 92 93 94 95 96 97 |
# File 'lib/rjb.rb', line 89 def format_sigs(s) if s.size < 0 '' elsif s.size == 1 s[0] else "[#{s.map{|m|m.nil? ? 'void' : m}.join(', ')}]" end end |
#instance_method?(m) ⇒ Boolean
76 77 78 |
# File 'lib/rjb.rb', line 76 def instance_method?(m) m.modifiers & MODIFIER.STATIC == 0 end |