Class: Rjb::Rjb_JavaClass
- Inherits:
-
Object
- Object
- Rjb::Rjb_JavaClass
show all
- Includes:
- JMethod
- Defined in:
- lib/rjb.rb
Instance Method Summary
collapse
Methods included from JMethod
#format_sigs, #instance_method?, #jmethods, #make_snake, #public_method?, #rjb_respond_to?
Instance Method Details
#java_methods ⇒ Object
128
129
130
131
132
133
134
|
# File 'lib/rjb.rb', line 128
def java_methods
jmethods([], self) do |m|
!instance_method?(m) && public_method?(m)
end.map do |m|
"#{m}(#{format_sigs(self.static_sigs(m))})"
end
end
|
#methods(inh = true) ⇒ Object
123
124
125
126
127
|
# File 'lib/rjb.rb', line 123
def methods(inh = true)
jmethods(super(inh), self) do |m|
!instance_method?(m) && public_method?(m)
end
end
|
#public_methods(inh = true) ⇒ Object
118
119
120
121
122
|
# File 'lib/rjb.rb', line 118
def public_methods(inh = true)
jmethods(super(inh), self) do |m|
!instance_method?(m) && public_method?(m)
end
end
|
#respond_to?(sym, priv = false) ⇒ Boolean
135
136
137
|
# File 'lib/rjb.rb', line 135
def respond_to?(sym, priv = false)
rjb_respond_to?(sym, true, priv)
end
|