public class org.jruby.runtime.load.ClassExtensionLibrary implements org.jruby.runtime.load.Library
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.load.ClassExtensionLibrary
super_class: java.lang.Object
{
private final java.lang.Class theClass;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static org.jruby.runtime.load.ClassExtensionLibrary tryFind(org.jruby.Ruby, java.lang.String);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/String;)Lorg/jruby/runtime/load/ClassExtensionLibrary;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=11, args_size=2
start local 0 start local 1 0: aload 1
ldc "/"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokestatic org.jruby.runtime.load.ClassExtensionLibrary.findLeftmostIdentifier:([Ljava/lang/String;)I
istore 3
start local 3 2: iload 3
aload 2
arraylength
if_icmpne 3
aconst_null
areturn
3: StackMap locals: java.lang.String[] int
StackMap stack:
aload 2
aload 2
arraylength
iconst_1
isub
aaload
invokestatic org.jruby.runtime.load.ClassExtensionLibrary.buildServiceName:(Ljava/lang/String;)Ljava/lang/CharSequence;
astore 4
start local 4 4: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.String.length:()I
iconst_2
imul
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 5
start local 5 5: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.String.length:()I
iconst_2
imul
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 6
start local 6 6: aload 2
arraylength
iconst_1
isub
istore 7
start local 7 7: goto 22
8: StackMap locals: org.jruby.Ruby java.lang.String java.lang.String[] int java.lang.CharSequence java.lang.StringBuilder java.lang.StringBuilder int
StackMap stack:
aload 5
aload 6
aload 2
iload 7
aload 4
invokestatic org.jruby.runtime.load.ClassExtensionLibrary.buildClassName:(Ljava/lang/StringBuilder;Ljava/lang/StringBuilder;[Ljava/lang/String;ILjava/lang/CharSequence;)V
9: aload 6
ldc "-"
iconst_0
invokevirtual java.lang.StringBuilder.indexOf:(Ljava/lang/String;I)I
iflt 10
aconst_null
areturn
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.Ruby.getJRubyClassLoader:()Lorg/jruby/util/JRubyClassLoader;
aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.util.JRubyClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 8
start local 8 11: aload 8
ifnonnull 12
goto 21
12: StackMap locals: java.net.URL
StackMap stack:
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 9
start local 9 13: aload 0
invokevirtual org.jruby.Ruby.getJavaSupport:()Lorg/jruby/javasupport/JavaSupport;
aload 9
invokevirtual org.jruby.javasupport.JavaSupport.loadJavaClass:(Ljava/lang/String;)Ljava/lang/Class;
astore 10
start local 10 14: new org.jruby.runtime.load.ClassExtensionLibrary
dup
new java.lang.StringBuilder
dup
aload 9
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".java"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 10
invokespecial org.jruby.runtime.load.ClassExtensionLibrary.<init>:(Ljava/lang/String;Ljava/lang/Class;)V
15: areturn
end local 10 16: StackMap locals: org.jruby.Ruby java.lang.String java.lang.String[] int java.lang.CharSequence java.lang.StringBuilder java.lang.StringBuilder int java.net.URL java.lang.String
StackMap stack: java.lang.ClassNotFoundException
pop
17: goto 21
18: StackMap locals:
StackMap stack: java.lang.UnsupportedClassVersionError
astore 10
start local 10 19: aload 0
invokevirtual org.jruby.Ruby.isDebug:()Z
ifeq 20
aload 10
invokevirtual java.lang.UnsupportedClassVersionError.printStackTrace:()V
20: StackMap locals: java.lang.UnsupportedClassVersionError
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "JRuby ext built for wrong Java version in `"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "': "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 10
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 9
invokevirtual org.jruby.Ruby.newLoadError:(Ljava/lang/String;Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 10 end local 9 end local 8 21: StackMap locals:
StackMap stack:
iinc 7 -1
StackMap locals:
StackMap stack:
22: iload 7
iload 3
if_icmpge 8
end local 7 23: aconst_null
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 runtime Lorg/jruby/Ruby;
0 24 1 searchName Ljava/lang/String;
1 24 2 all [Ljava/lang/String;
2 24 3 leftmostIdentifier I
4 24 4 serviceName Ljava/lang/CharSequence;
5 24 5 classNameBuilder Ljava/lang/StringBuilder;
6 24 6 classFileBuilder Ljava/lang/StringBuilder;
7 23 7 i I
11 21 8 resource Ljava/net/URL;
13 21 9 className Ljava/lang/String;
14 16 10 theClass Ljava/lang/Class;
19 21 10 ucve Ljava/lang/UnsupportedClassVersionError;
Exception table:
from to target type
13 15 16 Class java.lang.ClassNotFoundException
13 15 18 Class java.lang.UnsupportedClassVersionError
MethodParameters:
Name Flags
runtime
searchName
public static int findLeftmostIdentifier(java.lang.String[]);
descriptor: ([Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
isub
istore 1
start local 1 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
aaload
invokestatic org.jruby.runtime.load.ClassExtensionLibrary.isJavaIdentifier:(Ljava/lang/String;)Z
ifne 4
3: goto 6
4: StackMap locals:
StackMap stack:
iinc 1 -1
StackMap locals:
StackMap stack:
5: iload 1
ifge 2
6: StackMap locals:
StackMap stack:
iload 1
iconst_1
iadd
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 all [Ljava/lang/String;
1 7 1 firstElement I
MethodParameters:
Name Flags
all
private static boolean isJavaIdentifier(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifeq 1
iconst_0
ireturn
1: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isJavaIdentifierStart:(C)Z
ifne 2
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
istore 1
start local 1 3: goto 6
4: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isJavaIdentifierPart:(C)Z
ifne 5
iconst_0
ireturn
5: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
6: iload 1
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 4
end local 1 7: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 str Ljava/lang/String;
3 7 1 i I
MethodParameters:
Name Flags
str
private static void buildClassName(java.lang.StringBuilder, java.lang.StringBuilder, java.lang.String[], int, java.lang.CharSequence);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/StringBuilder;[Ljava/lang/String;ILjava/lang/CharSequence;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
1: aload 1
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
2: iload 3
istore 5
start local 5 3: goto 7
4: StackMap locals: int
StackMap stack:
aload 0
aload 2
iload 5
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
5: aload 1
aload 2
iload 5
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
aload 2
arraylength
iconst_1
isub
if_icmplt 4
end local 5 8: aload 0
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
pop
9: aload 1
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/CharSequence;)Ljava/lang/StringBuilder;
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 nameBuilder Ljava/lang/StringBuilder;
0 11 1 fileBuilder Ljava/lang/StringBuilder;
0 11 2 all [Ljava/lang/String;
0 11 3 i I
0 11 4 serviceName Ljava/lang/CharSequence;
3 8 5 j I
MethodParameters:
Name Flags
nameBuilder
fileBuilder
all
i
serviceName
private static java.lang.CharSequence buildServiceName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/CharSequence;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
ldc "_"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 1
start local 1 1: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.String.length:()I
bipush 7
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: aload 1
arraylength
istore 4
start local 4 4: goto 9
5: StackMap locals: java.lang.String java.lang.String[] java.lang.StringBuilder int int
StackMap stack:
aload 1
iload 3
aaload
astore 5
start local 5 6: aload 5
invokevirtual java.lang.String.length:()I
ifne 7
goto 10
7: StackMap locals: java.lang.String
StackMap stack:
aload 2
aload 5
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toUpperCase:(C)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 5
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 5 8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 5
end local 4 end local 3 10: StackMap locals:
StackMap stack:
aload 2
ldc "Service"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 jarName Ljava/lang/String;
1 12 1 last [Ljava/lang/String;
2 12 2 serviceName Ljava/lang/StringBuilder;
3 10 3 i I
4 10 4 j I
6 8 5 l Ljava/lang/String;
MethodParameters:
Name Flags
jarName final
public void <init>(java.lang.String, java.lang.Class);
descriptor: (Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield org.jruby.runtime.load.ClassExtensionLibrary.theClass:Ljava/lang/Class;
2: aload 0
aload 1
putfield org.jruby.runtime.load.ClassExtensionLibrary.name:Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/runtime/load/ClassExtensionLibrary;
0 4 1 name Ljava/lang/String;
0 4 2 extension Ljava/lang/Class;
MethodParameters:
Name Flags
name
extension
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.ClassExtensionLibrary.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/load/ClassExtensionLibrary;
public void load(org.jruby.Ruby, boolean);
descriptor: (Lorg/jruby/Ruby;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: ldc Lorg/jruby/runtime/load/BasicLibraryService;
aload 0
getfield org.jruby.runtime.load.ClassExtensionLibrary.theClass:Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 5
1: aload 1
aload 0
getfield org.jruby.runtime.load.ClassExtensionLibrary.name:Ljava/lang/String;
aload 0
getfield org.jruby.runtime.load.ClassExtensionLibrary.theClass:Ljava/lang/Class;
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.jruby.runtime.load.BasicLibraryService
iload 2
invokevirtual org.jruby.Ruby.loadExtension:(Ljava/lang/String;Lorg/jruby/runtime/load/BasicLibraryService;Z)V
2: goto 5
StackMap locals:
StackMap stack: java.lang.Exception
3: astore 3
start local 3 4: new java.lang.RuntimeException
dup
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aload 3
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/load/ClassExtensionLibrary;
0 6 1 runtime Lorg/jruby/Ruby;
0 6 2 wrap Z
4 5 3 ee Ljava/lang/Exception;
Exception table:
from to target type
1 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
runtime
wrap
}
SourceFile: "ClassExtensionLibrary.java"