public class org.jruby.ext.coverage.CoverageData
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.ext.coverage.CoverageData
super_class: java.lang.Object
{
public static final java.lang.String STARTED;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: ""
private static final int[] SVALUE;
descriptor: [I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private volatile java.util.Map<java.lang.String, int[]> coverage;
descriptor: Ljava/util/Map;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/Map<Ljava/lang/String;[I>;
private static final java.util.EnumSet<org.jruby.runtime.RubyEvent> COVERAGE_EVENTS;
descriptor: Ljava/util/EnumSet;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/EnumSet<Lorg/jruby/runtime/RubyEvent;>;
private final org.jruby.runtime.EventHook COVERAGE_HOOK;
descriptor: Lorg/jruby/runtime/EventHook;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/ext/coverage/CoverageData;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.ext.coverage.CoverageData.$assertionsDisabled:Z
3: iconst_0
newarray 10
putstatic org.jruby.ext.coverage.CoverageData.SVALUE:[I
4: getstatic org.jruby.runtime.RubyEvent.COVERAGE:Lorg/jruby/runtime/RubyEvent;
invokestatic java.util.EnumSet.of:(Ljava/lang/Enum;)Ljava/util/EnumSet;
putstatic org.jruby.ext.coverage.CoverageData.COVERAGE_EVENTS:Ljava/util/EnumSet;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.jruby.ext.coverage.CoverageData$1
dup
aload 0
invokespecial org.jruby.ext.coverage.CoverageData$1.<init>:(Lorg/jruby/ext/coverage/CoverageData;)V
putfield org.jruby.ext.coverage.CoverageData.COVERAGE_HOOK:Lorg/jruby/runtime/EventHook;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/coverage/CoverageData;
public boolean isCoverageEnabled();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
ifnull 1
aload 0
getfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
ldc ""
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/coverage/CoverageData;
public java.util.Map<java.lang.String, int[]> getCoverage();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/coverage/CoverageData;
Signature: ()Ljava/util/Map<Ljava/lang/String;[I>;
public synchronized void setCoverageEnabled(org.jruby.Ruby, boolean);
descriptor: (Lorg/jruby/Ruby;Z)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
astore 3
start local 3 1: aload 3
ifnonnull 2
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
2: StackMap locals: java.util.Map
StackMap stack:
iload 2
ifeq 6
3: aload 3
ldc ""
getstatic org.jruby.ext.coverage.CoverageData.SVALUE:[I
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 1
aload 0
getfield org.jruby.ext.coverage.CoverageData.COVERAGE_HOOK:Lorg/jruby/runtime/EventHook;
invokevirtual org.jruby.Ruby.addEventHook:(Lorg/jruby/runtime/EventHook;)V
5: goto 7
6: StackMap locals:
StackMap stack:
aload 3
ldc ""
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals:
StackMap stack:
aload 0
aload 3
putfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/ext/coverage/CoverageData;
0 9 1 runtime Lorg/jruby/Ruby;
0 9 2 enabled Z
1 9 3 coverage Ljava/util/Map<Ljava/lang/String;[I>;
MethodParameters:
Name Flags
runtime
enabled
public synchronized java.util.Map<java.lang.String, int[]> resetCoverage(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
astore 2
start local 2 1: aload 1
aload 0
getfield org.jruby.ext.coverage.CoverageData.COVERAGE_HOOK:Lorg/jruby/runtime/EventHook;
invokevirtual org.jruby.Ruby.removeEventHook:(Lorg/jruby/runtime/EventHook;)V
2: aload 2
ldc ""
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 2
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.jruby.ext.coverage.CoverageData org.jruby.Ruby java.util.Map top java.util.Iterator
StackMap stack:
4: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 5: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 6: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast int[]
invokestatic org.jruby.ext.coverage.CoverageData.hasCodeBeenPartiallyCovered:([I)Z
ifeq 7
aload 2
aload 5
getstatic org.jruby.ext.coverage.CoverageData.SVALUE:[I
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 0
aconst_null
putfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/coverage/CoverageData;
0 10 1 runtime Lorg/jruby/Ruby;
1 10 2 coverage Ljava/util/Map<Ljava/lang/String;[I>;
5 7 3 entry Ljava/util/Map$Entry<Ljava/lang/String;[I>;
6 7 5 key Ljava/lang/String;
Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Ljava/lang/String;[I>;
MethodParameters:
Name Flags
runtime
private static boolean hasCodeBeenPartiallyCovered(int[]);
descriptor: ([I)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
iaload
ifle 3
iconst_1
ireturn
3: StackMap locals:
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
aload 0
arraylength
if_icmplt 2
end local 1 5: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 lines [I
1 5 1 i I
MethodParameters:
Name Flags
lines
public synchronized java.util.Map<java.lang.String, int[]> prepareCoverage(java.lang.String, int[]);
descriptor: (Ljava/lang/String;[I)Ljava/util/Map;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.jruby.ext.coverage.CoverageData.$assertionsDisabled:Z
ifne 1
aload 2
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.coverage.CoverageData.coverage:Ljava/util/Map;
astore 3
start local 3 2: aload 1
ifnonnull 4
3: aload 3
areturn
4: StackMap locals: java.util.Map
StackMap stack:
aload 3
ifnull 6
5: aload 3
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/ext/coverage/CoverageData;
0 7 1 filename Ljava/lang/String;
0 7 2 lines [I
2 7 3 coverage Ljava/util/Map<Ljava/lang/String;[I>;
Signature: (Ljava/lang/String;[I)Ljava/util/Map<Ljava/lang/String;[I>;
MethodParameters:
Name Flags
filename
lines
}
SourceFile: "CoverageData.java"
NestMembers:
org.jruby.ext.coverage.CoverageData$1
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
org.jruby.ext.coverage.CoverageData$1