Class: Java::java::lang::Class

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
core/src/main/ruby/jruby/java/java_ext/java.lang.rb

Overview

TODO:

likely to get revised!

Note:

Only explicit (or customized) Ruby methods are listed here, Java classes will have all of their Java methods available.

java.lang.Class

See Also:

Instance Method Summary (collapse)

Instance Method Details

- (Object) <=>(other)



208
209
210
211
212
213
214
215
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 208

def <=>(other)
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
  # return nil unless other.class == java::lang::Class
  #
  # return  0 if self == other
  # return +1 if self.is_assignable_from(other)
  # return -1 if other.is_assignable_from(self)
end

- (true, false) abstract?

Returns:

  • (true, false)

Since:

  • 9.1



241
242
243
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 241

def abstract?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (true, false) annotations?

Returns:

  • (true, false)


197
198
199
200
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 197

def annotations?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
  # !annotations.empty?
end

- (true, false) anonymous?

Returns:

  • (true, false)

Since:

  • 9.1



235
236
237
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 235

def anonymous?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (true, false) declared_annotations?

Returns:

  • (true, false)


203
204
205
206
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 203

def declared_annotations?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
  # !declared_annotations.empty?
end

- (Object) declared_class_methods



229
230
231
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 229

def declared_class_methods
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (Object) declared_instance_methods



221
222
223
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 221

def declared_instance_methods
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (true, false) final?

Returns:

  • (true, false)


261
262
263
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 261

def final?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (String) inspect

Returns `java.lang.Class#toString`

Returns:

  • (String)

    `java.lang.Class#toString`



181
182
183
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 181

def inspect
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (Object) java_class_methods



225
226
227
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 225

def java_class_methods
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (Object) java_instance_methods



217
218
219
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 217

def java_instance_methods
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (true, false) private?

Returns:

  • (true, false)


256
257
258
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 256

def private?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (true, false) protected?

Returns:

  • (true, false)


251
252
253
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 251

def protected?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (true, false) public?

Returns:

  • (true, false)


246
247
248
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 246

def public?
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (Java::java::io::InputStream) resource_as_stream(name)



186
187
188
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 186

def resource_as_stream(name)
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end

- (String) resource_as_string(name)

Returns:

  • (String)


191
192
193
194
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 191

def resource_as_string(name)
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
  # resource_as_stream(name).to_io.read
end

- (Class, Module) ruby_class

Returns the proxy class (or module in case of an interface).

Returns:

  • (Class, Module)

    the proxy class (or module in case of an interface).



170
171
172
173
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 170

def ruby_class
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
  # ::JRuby.runtime.java_support.get_proxy_class_from_cache(self)
end

- (String) to_s

Returns the Java class name

Returns:

  • (String)

    the Java class name



176
177
178
# File 'core/src/main/ruby/jruby/java/java_ext/java.lang.rb', line 176

def to_s
  # stub implemented in org.jruby.javasupport.ext.JavaLang.java
end