public class javax.sound.midi.Track
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.sound.midi.Track
super_class: java.lang.Object
{
private final java.util.ArrayList<javax.sound.midi.MidiEvent> eventsList;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljavax/sound/midi/MidiEvent;>;
private final java.util.HashSet<javax.sound.midi.MidiEvent> set;
descriptor: Ljava/util/HashSet;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashSet<Ljavax/sound/midi/MidiEvent;>;
private final javax.sound.midi.MidiEvent eotEvent;
descriptor: Ljavax/sound/midi/MidiEvent;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
2: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield javax.sound.midi.Track.set:Ljava/util/HashSet;
3: new javax.sound.midi.Track$ImmutableEndOfTrack
dup
invokespecial javax.sound.midi.Track$ImmutableEndOfTrack.<init>:()V
astore 1
start local 1 4: aload 0
new javax.sound.midi.MidiEvent
dup
aload 1
lconst_0
invokespecial javax.sound.midi.MidiEvent.<init>:(Ljavax/sound/midi/MidiMessage;J)V
putfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
5: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: aload 0
getfield javax.sound.midi.Track.set:Ljava/util/HashSet;
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/sound/midi/Track;
4 8 1 eot Ljavax/sound/midi/MetaMessage;
public boolean add(javax.sound.midi.MidiEvent);
descriptor: (Ljavax/sound/midi/MidiEvent;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
dup
astore 2
monitorenter
3: aload 0
getfield javax.sound.midi.Track.set:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.contains:(Ljava/lang/Object;)Z
ifne 37
4: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
istore 3
start local 3 5: aconst_null
astore 4
start local 4 6: iload 3
ifle 8
7: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
iload 3
iconst_1
isub
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.MidiEvent
astore 4
8: StackMap locals: java.util.ArrayList int javax.sound.midi.MidiEvent
StackMap stack:
aload 4
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
if_acmpeq 16
9: aload 4
ifnull 12
10: aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
aload 4
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
invokevirtual javax.sound.midi.MidiEvent.setTick:(J)V
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
lconst_0
invokevirtual javax.sound.midi.MidiEvent.setTick:(J)V
13: StackMap locals:
StackMap stack:
aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
14: aload 0
getfield javax.sound.midi.Track.set:Ljava/util/HashSet;
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
15: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
istore 3
16: StackMap locals:
StackMap stack:
aload 1
invokevirtual javax.sound.midi.MidiEvent.getMessage:()Ljavax/sound/midi/MidiMessage;
invokestatic com.sun.media.sound.MidiUtils.isMetaEndOfTrack:(Ljavax/sound/midi/MidiMessage;)Z
ifeq 21
17: aload 1
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
lcmp
ifle 19
18: aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
aload 1
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
invokevirtual javax.sound.midi.MidiEvent.setTick:(J)V
19: StackMap locals:
StackMap stack:
aload 2
monitorexit
20: iconst_1
ireturn
21: StackMap locals:
StackMap stack:
aload 0
getfield javax.sound.midi.Track.set:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
22: iload 3
istore 5
start local 5 23: goto 27
24: StackMap locals: int
StackMap stack:
aload 1
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
iload 5
iconst_1
isub
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.MidiEvent
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
lcmp
iflt 26
25: goto 28
26: StackMap locals:
StackMap stack:
iinc 5 -1
StackMap locals:
StackMap stack:
27: iload 5
ifgt 24
28: StackMap locals:
StackMap stack:
iload 5
iload 3
if_icmpne 34
29: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
iload 3
iconst_1
isub
aload 1
invokevirtual java.util.ArrayList.set:(ILjava/lang/Object;)Ljava/lang/Object;
pop
30: aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
aload 1
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
lcmp
ifge 32
31: aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
aload 1
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
invokevirtual javax.sound.midi.MidiEvent.setTick:(J)V
32: StackMap locals:
StackMap stack:
aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
aload 0
getfield javax.sound.midi.Track.eotEvent:Ljavax/sound/midi/MidiEvent;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
33: goto 35
34: StackMap locals:
StackMap stack:
aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
iload 5
aload 1
invokevirtual java.util.ArrayList.add:(ILjava/lang/Object;)V
35: StackMap locals:
StackMap stack:
aload 2
monitorexit
36: iconst_1
ireturn
end local 5 end local 4 end local 3 37: StackMap locals:
StackMap stack:
aload 2
monitorexit
38: goto 41
StackMap locals:
StackMap stack: java.lang.Throwable
39: aload 2
monitorexit
40: athrow
41: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Ljavax/sound/midi/Track;
0 42 1 event Ljavax/sound/midi/MidiEvent;
5 37 3 eventsCount I
6 37 4 lastEvent Ljavax/sound/midi/MidiEvent;
23 37 5 i I
Exception table:
from to target type
3 20 39 any
21 36 39 any
37 38 39 any
39 40 39 any
MethodParameters:
Name Flags
event
public boolean remove(javax.sound.midi.MidiEvent);
descriptor: (Ljavax/sound/midi/MidiEvent;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
dup
astore 2
monitorenter
1: aload 0
getfield javax.sound.midi.Track.set:Ljava/util/HashSet;
aload 1
invokevirtual java.util.HashSet.remove:(Ljava/lang/Object;)Z
ifeq 7
2: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.indexOf:(Ljava/lang/Object;)I
istore 3
start local 3 3: iload 3
iflt 7
4: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
iload 3
invokevirtual java.util.ArrayList.remove:(I)Ljava/lang/Object;
pop
5: aload 2
monitorexit
6: iconst_1
ireturn
end local 3 7: StackMap locals: java.util.ArrayList
StackMap stack:
aload 2
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/sound/midi/Track;
0 12 1 event Ljavax/sound/midi/MidiEvent;
3 7 3 i I
Exception table:
from to target type
1 6 9 any
7 8 9 any
9 10 9 any
MethodParameters:
Name Flags
event
public javax.sound.midi.MidiEvent get(int);
descriptor: (I)Ljavax/sound/midi/MidiEvent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
dup
astore 2
monitorenter
1: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
iload 1
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.MidiEvent
aload 2
monitorexit
2: areturn
3: StackMap locals: javax.sound.midi.Track int java.util.ArrayList
StackMap stack: java.lang.Throwable
aload 2
monitorexit
4: athrow
5: StackMap locals: javax.sound.midi.Track int
StackMap stack: java.lang.IndexOutOfBoundsException
astore 2
start local 2 6: new java.lang.ArrayIndexOutOfBoundsException
dup
aload 2
invokevirtual java.lang.IndexOutOfBoundsException.getMessage:()Ljava/lang/String;
invokespecial java.lang.ArrayIndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/sound/midi/Track;
0 7 1 index I
6 7 2 ioobe Ljava/lang/IndexOutOfBoundsException;
Exception table:
from to target type
1 2 3 any
3 4 3 any
0 2 5 Class java.lang.IndexOutOfBoundsException
3 5 5 Class java.lang.IndexOutOfBoundsException
Exceptions:
throws java.lang.ArrayIndexOutOfBoundsException
MethodParameters:
Name Flags
index
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
dup
astore 1
monitorenter
1: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
aload 1
monitorexit
2: ireturn
3: StackMap locals: javax.sound.midi.Track java.util.ArrayList
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/sound/midi/Track;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public long ticks();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
dup
astore 3
monitorenter
2: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
ifle 4
3: aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
aload 0
getfield javax.sound.midi.Track.eventsList:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
iconst_1
isub
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast javax.sound.midi.MidiEvent
invokevirtual javax.sound.midi.MidiEvent.getTick:()J
lstore 1
4: StackMap locals: long java.util.ArrayList
StackMap stack:
aload 3
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/sound/midi/Track;
1 9 1 ret J
Exception table:
from to target type
2 5 6 any
6 7 6 any
}
SourceFile: "Track.java"
NestMembers:
javax.sound.midi.Track$ImmutableEndOfTrack
InnerClasses:
private ImmutableEndOfTrack = javax.sound.midi.Track$ImmutableEndOfTrack of javax.sound.midi.Track