public abstract class org.jruby.javasupport.binding.MethodInstaller extends org.jruby.javasupport.binding.NamedInstaller
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.javasupport.binding.MethodInstaller
super_class: org.jruby.javasupport.binding.NamedInstaller
{
final java.util.ArrayList<java.lang.reflect.Method> methods;
descriptor: Ljava/util/ArrayList;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/ArrayList<Ljava/lang/reflect/Method;>;
private java.util.List<java.lang.String> aliases;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
private boolean localMethod;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokespecial org.jruby.javasupport.binding.NamedInstaller.<init>:(Ljava/lang/String;I)V
1: aload 0
new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
putfield org.jruby.javasupport.binding.MethodInstaller.methods:Ljava/util/ArrayList;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 3 1 name Ljava/lang/String;
0 3 2 type I
MethodParameters:
Name Flags
name
type
final void addMethod(java.lang.reflect.Method, java.lang.Class<?>);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/Class;)V
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.methods:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
1: aload 0
dup
getfield org.jruby.javasupport.binding.MethodInstaller.localMethod:Z
2: aload 2
aload 1
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
if_acmpeq 4
3: aload 1
invokevirtual java.lang.reflect.Method.getDeclaringClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isInterface:()Z
ifne 4
iconst_0
goto 5
StackMap locals: org.jruby.javasupport.binding.MethodInstaller java.lang.reflect.Method java.lang.Class
StackMap stack: org.jruby.javasupport.binding.MethodInstaller int
4: iconst_1
StackMap locals: org.jruby.javasupport.binding.MethodInstaller java.lang.reflect.Method java.lang.Class
StackMap stack: org.jruby.javasupport.binding.MethodInstaller int int
5: ior
6: putfield org.jruby.javasupport.binding.MethodInstaller.localMethod:Z
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 8 1 method Ljava/lang/reflect/Method;
0 8 2 clazz Ljava/lang/Class<*>;
Signature: (Ljava/lang/reflect/Method;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
method final
clazz final
final void addAlias(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.aliases:Ljava/util/List;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aload 0
new java.util.ArrayList
dup
iconst_4
invokespecial java.util.ArrayList.<init>:(I)V
dup_x1
putfield org.jruby.javasupport.binding.MethodInstaller.aliases:Ljava/util/List;
astore 2
3: StackMap locals: java.util.Collection
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Collection.contains:(Ljava/lang/Object;)Z
ifne 4
aload 2
aload 1
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 5 1 alias Ljava/lang/String;
1 5 2 aliases Ljava/util/Collection<Ljava/lang/String;>;
MethodParameters:
Name Flags
alias final
void assignAliases(java.util.Map<java.lang.String, org.jruby.javasupport.binding.AssignedName>);
descriptor: (Ljava/util/Map;)V
flags: (0x0000)
Code:
stack=4, locals=12, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.name:Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokestatic org.jruby.javasupport.JavaUtil.getRubyCasedName:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 2: aload 0
aload 3
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
3: aload 2
invokestatic org.jruby.javasupport.JavaUtil.getJavaPropertyName:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.methods:Ljava/util/ArrayList;
astore 5
start local 5 5: iconst_0
istore 6
start local 6 6: goto 43
7: StackMap locals: org.jruby.javasupport.binding.MethodInstaller java.util.Map java.lang.String java.lang.String java.lang.String java.util.List int
StackMap stack:
aload 5
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.reflect.Method
astore 7
start local 7 8: aload 7
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
astore 8
start local 8 9: aload 7
invokevirtual java.lang.reflect.Method.getReturnType:()Ljava/lang/Class;
astore 9
start local 9 10: aload 8
arraylength
istore 10
start local 10 11: aload 2
ldc "apply"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
12: aload 0
ldc "[]"
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
13: goto 19
StackMap locals: org.jruby.javasupport.binding.MethodInstaller java.util.Map java.lang.String java.lang.String java.lang.String java.util.List int java.lang.reflect.Method java.lang.Class[] java.lang.Class int
StackMap stack:
14: iload 10
iconst_2
if_icmpne 17
aload 2
ldc "update"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 17
15: aload 0
ldc "[]="
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
16: goto 19
StackMap locals:
StackMap stack:
17: aload 2
bipush 36
invokestatic org.jruby.util.StringSupport.startsWith:(Ljava/lang/CharSequence;C)Z
ifeq 19
18: aload 0
aload 2
invokestatic org.jruby.javasupport.binding.MethodGatherer.fixScalaNames:(Ljava/lang/String;)Ljava/lang/String;
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
19: StackMap locals:
StackMap stack:
aconst_null
astore 11
start local 11 20: aload 4
ifnull 38
21: aload 3
ldc "get_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 27
22: aload 3
iconst_4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 11
23: iload 10
ifne 38
24: aload 0
aload 4
aload 1
getstatic org.jruby.javasupport.binding.Priority.GET_ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
25: aload 0
aload 11
aload 1
getstatic org.jruby.javasupport.binding.Priority.GET_ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
26: goto 38
StackMap locals: java.lang.String
StackMap stack:
27: aload 3
ldc "set_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 33
28: aload 3
iconst_4
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 11
29: iload 10
iconst_1
if_icmpne 38
aload 9
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 38
30: aload 0
new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 61
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
31: aload 0
new java.lang.StringBuilder
dup
aload 11
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 61
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
32: goto 38
StackMap locals:
StackMap stack:
33: aload 3
ldc "is_"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 38
34: aload 3
iconst_3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 11
35: aload 9
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 38
36: aload 0
aload 4
aload 1
getstatic org.jruby.javasupport.binding.Priority.IS_ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
37: aload 0
aload 11
aload 1
getstatic org.jruby.javasupport.binding.Priority.IS_ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
38: StackMap locals:
StackMap stack:
aload 9
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 42
39: aload 0
new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 63
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
40: aload 11
ifnull 42
41: aload 0
new java.lang.StringBuilder
dup
aload 11
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 63
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
getstatic org.jruby.javasupport.binding.Priority.ALIAS:Lorg/jruby/javasupport/binding/Priority;
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addUnassignedAlias:(Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
pop
end local 11 end local 10 end local 9 end local 8 end local 7 42: StackMap locals: org.jruby.javasupport.binding.MethodInstaller java.util.Map java.lang.String java.lang.String java.lang.String java.util.List int
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
43: iload 6
aload 5
invokeinterface java.util.List.size:()I
if_icmplt 7
end local 6 44: return
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 45 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 45 1 assignedNames Ljava/util/Map<Ljava/lang/String;Lorg/jruby/javasupport/binding/AssignedName;>;
1 45 2 name Ljava/lang/String;
2 45 3 rubyCasedName Ljava/lang/String;
4 45 4 javaPropertyName Ljava/lang/String;
5 45 5 methods Ljava/util/List<Ljava/lang/reflect/Method;>;
6 44 6 i I
8 42 7 method Ljava/lang/reflect/Method;
9 42 8 argTypes [Ljava/lang/Class;
10 42 9 resultType Ljava/lang/Class<*>;
11 42 10 argCount I
20 42 11 rubyPropertyName Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Lorg/jruby/javasupport/binding/AssignedName;>;)V
MethodParameters:
Name Flags
assignedNames final
boolean addUnassignedAlias(java.lang.String, java.util.Map<java.lang.String, org.jruby.javasupport.binding.AssignedName>, org.jruby.javasupport.binding.Priority);
descriptor: (Ljava/lang/String;Ljava/util/Map;Lorg/jruby/javasupport/binding/Priority;)Z
flags: (0x0000)
Code:
stack=6, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.jruby.javasupport.binding.AssignedName
astore 4
start local 4 1: aload 3
aload 4
invokevirtual org.jruby.javasupport.binding.Priority.moreImportantThan:(Lorg/jruby/javasupport/binding/AssignedName;)Z
ifeq 5
2: aload 0
aload 1
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addAlias:(Ljava/lang/String;)V
3: aload 2
aload 1
new org.jruby.javasupport.binding.AssignedName
dup
aload 1
aload 3
invokespecial org.jruby.javasupport.binding.AssignedName.<init>:(Ljava/lang/String;Lorg/jruby/javasupport/binding/Priority;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: iconst_1
ireturn
5: StackMap locals: org.jruby.javasupport.binding.AssignedName
StackMap stack:
aload 3
aload 4
invokevirtual org.jruby.javasupport.binding.Priority.asImportantAs:(Lorg/jruby/javasupport/binding/AssignedName;)Z
ifeq 8
6: aload 0
aload 1
invokevirtual org.jruby.javasupport.binding.MethodInstaller.addAlias:(Ljava/lang/String;)V
7: iconst_1
ireturn
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 9 1 name Ljava/lang/String;
0 9 2 assignedNames Ljava/util/Map<Ljava/lang/String;Lorg/jruby/javasupport/binding/AssignedName;>;
0 9 3 aliasType Lorg/jruby/javasupport/binding/Priority;
1 9 4 assignedName Lorg/jruby/javasupport/binding/AssignedName;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;Lorg/jruby/javasupport/binding/AssignedName;>;Lorg/jruby/javasupport/binding/Priority;)Z
MethodParameters:
Name Flags
name final
assignedNames final
aliasType final
final void removeAlias(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.aliases:Ljava/util/List;
astore 2
start local 2 1: aload 2
ifnonnull 2
return
2: StackMap locals: java.util.Collection
StackMap stack:
aload 2
aload 1
invokeinterface java.util.Collection.remove:(Ljava/lang/Object;)Z
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 4 1 alias Ljava/lang/String;
1 4 2 aliases Ljava/util/Collection<Ljava/lang/String;>;
MethodParameters:
Name Flags
alias final
final void defineMethods(org.jruby.RubyModule, org.jruby.internal.runtime.methods.DynamicMethod);
descriptor: (Lorg/jruby/RubyModule;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokevirtual org.jruby.javasupport.binding.MethodInstaller.defineMethods:(Lorg/jruby/RubyModule;Lorg/jruby/internal/runtime/methods/DynamicMethod;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 2 1 target Lorg/jruby/RubyModule;
0 2 2 invoker Lorg/jruby/internal/runtime/methods/DynamicMethod;
MethodParameters:
Name Flags
target
invoker
protected final void defineMethods(org.jruby.RubyModule, org.jruby.internal.runtime.methods.DynamicMethod, boolean);
descriptor: (Lorg/jruby/RubyModule;Lorg/jruby/internal/runtime/methods/DynamicMethod;Z)V
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.name:Ljava/lang/String;
astore 4
start local 4 1: aload 1
aload 4
aload 2
invokevirtual org.jruby.RubyModule.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
2: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.aliases:Ljava/util/List;
astore 5
start local 5 3: aload 5
ifnull 11
aload 0
invokevirtual org.jruby.javasupport.binding.MethodInstaller.isPublic:()Z
ifeq 11
4: iconst_0
istore 6
start local 6 5: goto 10
6: StackMap locals: java.lang.String java.util.List int
StackMap stack:
aload 5
iload 6
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 7: iload 3
ifeq 8
aload 4
aload 7
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
goto 9
8: StackMap locals: java.lang.String
StackMap stack:
aload 1
aload 7
aload 2
invokevirtual org.jruby.RubyModule.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
end local 7 9: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
aload 5
invokeinterface java.util.List.size:()I
if_icmplt 6
end local 6 11: StackMap locals:
StackMap stack:
return
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 12 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 12 1 target Lorg/jruby/RubyModule;
0 12 2 invoker Lorg/jruby/internal/runtime/methods/DynamicMethod;
0 12 3 checkDups Z
1 12 4 oldName Ljava/lang/String;
3 12 5 aliases Ljava/util/List<Ljava/lang/String;>;
5 11 6 i I
7 9 7 name Ljava/lang/String;
MethodParameters:
Name Flags
target
invoker
checkDups
boolean hasLocalMethod();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.javasupport.binding.MethodInstaller.localMethod:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
void setLocalMethod(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.jruby.javasupport.binding.MethodInstaller.localMethod:Z
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/binding/MethodInstaller;
0 1 1 flag Z
MethodParameters:
Name Flags
flag
}
SourceFile: "MethodInstaller.java"