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
142
143
144
145
146
147
148
|
# File 'lib/rjb.rb', line 142
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
137
138
139
140
141
|
# File 'lib/rjb.rb', line 137
def methods(inh = true)
jmethods(super(inh), self) do |m|
!instance_method?(m) && public_method?(m)
end
end
|
#public_methods(inh = true) ⇒ Object
132
133
134
135
136
|
# File 'lib/rjb.rb', line 132
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
149
150
151
|
# File 'lib/rjb.rb', line 149
def respond_to?(sym, priv = false)
rjb_respond_to?(sym, true, priv)
end
|