Skip to content

Instantly share code, notes, and snippets.

@Serabe
Created April 24, 2009 15:05
Show Gist options
  • Save Serabe/101139 to your computer and use it in GitHub Desktop.
Save Serabe/101139 to your computer and use it in GitHub Desktop.
serabe@Sylar:~/Programming/projects/ruby2java$ javap -c org.jruby.ruby2java.PackageClass
Compiled from "examples.package_example.rb"
public class org.jruby.ruby2java.PackageClass extends org.jruby.RubyObject{
static {};
Code:
0: invokestatic #13; //Method org/jruby/Ruby.getGlobalRuntime:()Lorg/jruby/Ruby;
3: invokevirtual #17; //Method org/jruby/Ruby.getLoadService:()Lorg/jruby/runtime/load/LoadService;
6: ldc #18; //String examples/package_example.rb
8: invokevirtual #24; //Method org/jruby/runtime/load/LoadService.require:(Ljava/lang/String;)Z
11: return
public org.jruby.ruby2java.PackageClass();
Code:
0: aload_0
1: invokestatic #13; //Method org/jruby/Ruby.getGlobalRuntime:()Lorg/jruby/Ruby;
4: dup
5: ldc #27; //String RubyClass
7: invokevirtual #31; //Method org/jruby/Ruby.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
10: invokespecial #34; //Method org/jruby/RubyObject."<init>":(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
13: return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment