All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jruby.java.java_utilities.rb Maven / Gradle / Ivy

There is a newer version: 9.4.9.0
Show newest version
module JavaUtilities
  def self.extend_proxy(java_class_name, &block)
    java_class = JavaUtilities.get_proxy_class(java_class_name)
    java_class.class_eval(&block)
  end

  def self.print_class(java_type, indent="")
     while (!java_type.nil? && java_type.name != "java.lang.Class")
        puts "#{indent}Name:  #{java_type.name}, access: #{ JavaUtilities.access(java_type) }  Interfaces: "
        java_type.interfaces.each { |i| print_class(i, "  #{indent}") }
        puts "#{indent}SuperClass: "
        print_class(java_type.superclass, "  #{indent}")
        java_type = java_type.superclass
     end
  end
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy