public abstract class com.sun.media.sound.AbstractMidiDeviceProvider extends javax.sound.midi.spi.MidiDeviceProvider
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.media.sound.AbstractMidiDeviceProvider
super_class: javax.sound.midi.spi.MidiDeviceProvider
{
private static final boolean enabled;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic com.sun.media.sound.Platform.initialize:()V
1: invokestatic com.sun.media.sound.Platform.isMidiIOEnabled:()Z
putstatic com.sun.media.sound.AbstractMidiDeviceProvider.enabled:Z
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial javax.sound.midi.spi.MidiDeviceProvider.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/AbstractMidiDeviceProvider;
final synchronized void readDeviceInfos();
descriptor: ()V
flags: (0x0030) ACC_FINAL, ACC_SYNCHRONIZED
Code:
stack=4, locals=11, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.getInfoCache:()[Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
astore 1
start local 1 1: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.getDeviceCache:()[Ljavax/sound/midi/MidiDevice;
astore 2
start local 2 2: getstatic com.sun.media.sound.AbstractMidiDeviceProvider.enabled:Z
ifne 8
3: aload 1
ifnull 4
aload 1
arraylength
ifeq 5
4: StackMap locals: com.sun.media.sound.AbstractMidiDeviceProvider$Info[] javax.sound.midi.MidiDevice[]
StackMap stack:
aload 0
iconst_0
anewarray com.sun.media.sound.AbstractMidiDeviceProvider$Info
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.setInfoCache:([Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;)V
5: StackMap locals:
StackMap stack:
aload 2
ifnull 6
aload 2
arraylength
ifeq 7
6: StackMap locals:
StackMap stack:
aload 0
iconst_0
anewarray javax.sound.midi.MidiDevice
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.setDeviceCache:([Ljavax/sound/midi/MidiDevice;)V
7: StackMap locals:
StackMap stack:
return
8: StackMap locals:
StackMap stack:
aload 1
ifnonnull 9
iconst_m1
goto 10
StackMap locals:
StackMap stack:
9: aload 1
arraylength
StackMap locals:
StackMap stack: int
10: istore 3
start local 3 11: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.getNumDevices:()I
istore 4
start local 4 12: iload 3
iload 4
if_icmpeq 44
13: iload 4
anewarray com.sun.media.sound.AbstractMidiDeviceProvider$Info
astore 5
start local 5 14: iload 4
anewarray javax.sound.midi.MidiDevice
astore 6
start local 6 15: iconst_0
istore 7
start local 7 16: goto 34
17: StackMap locals: com.sun.media.sound.AbstractMidiDeviceProvider com.sun.media.sound.AbstractMidiDeviceProvider$Info[] javax.sound.midi.MidiDevice[] int int com.sun.media.sound.AbstractMidiDeviceProvider$Info[] javax.sound.midi.MidiDevice[] int
StackMap stack:
aload 0
iload 7
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.createInfo:(I)Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
astore 8
start local 8 18: aload 1
ifnull 31
19: iconst_0
istore 9
start local 9 20: goto 30
21: StackMap locals: com.sun.media.sound.AbstractMidiDeviceProvider$Info int
StackMap stack:
aload 1
iload 9
aaload
astore 10
start local 10 22: aload 10
ifnull 29
aload 10
aload 8
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider$Info.equalStrings:(Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;)Z
ifeq 29
23: aload 5
iload 7
aload 10
aastore
24: aload 10
iload 7
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider$Info.setIndex:(I)V
25: aload 1
iload 9
aconst_null
aastore
26: aload 6
iload 7
aload 2
iload 9
aaload
aastore
27: aload 2
iload 9
aconst_null
aastore
28: goto 31
end local 10 29: StackMap locals:
StackMap stack:
iinc 9 1
StackMap locals:
StackMap stack:
30: iload 9
aload 1
arraylength
if_icmplt 21
end local 9 31: StackMap locals:
StackMap stack:
aload 5
iload 7
aaload
ifnonnull 33
32: aload 5
iload 7
aload 8
aastore
end local 8 33: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
34: iload 7
iload 4
if_icmplt 17
end local 7 35: aload 1
ifnull 42
36: iconst_0
istore 7
start local 7 37: goto 41
38: StackMap locals:
StackMap stack:
aload 1
iload 7
aaload
ifnull 40
39: aload 1
iload 7
aaload
iconst_m1
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider$Info.setIndex:(I)V
40: StackMap locals:
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
41: iload 7
aload 1
arraylength
if_icmplt 38
end local 7 42: StackMap locals:
StackMap stack:
aload 0
aload 5
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.setInfoCache:([Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;)V
43: aload 0
aload 6
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.setDeviceCache:([Ljavax/sound/midi/MidiDevice;)V
end local 6 end local 5 44: StackMap locals:
StackMap stack:
return
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 Lcom/sun/media/sound/AbstractMidiDeviceProvider;
1 45 1 infos [Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
2 45 2 devices [Ljavax/sound/midi/MidiDevice;
11 45 3 oldNumDevices I
12 45 4 newNumDevices I
14 44 5 newInfos [Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
15 44 6 newDevices [Ljavax/sound/midi/MidiDevice;
16 35 7 i I
18 33 8 newInfo Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
20 31 9 ii I
22 29 10 info Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
37 42 7 i I
public final javax.sound.midi.MidiDevice$Info[] getDeviceInfo();
descriptor: ()[Ljavax/sound/midi/MidiDevice$Info;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.readDeviceInfos:()V
1: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.getInfoCache:()[Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
astore 1
start local 1 2: aload 1
arraylength
anewarray javax.sound.midi.MidiDevice$Info
astore 2
start local 2 3: aload 1
iconst_0
aload 2
iconst_0
aload 1
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/media/sound/AbstractMidiDeviceProvider;
2 5 1 infos [Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
3 5 2 localArray [Ljavax/sound/midi/MidiDevice$Info;
public final javax.sound.midi.MidiDevice getDevice(javax.sound.midi.MidiDevice$Info);
descriptor: (Ljavax/sound/midi/MidiDevice$Info;)Ljavax/sound/midi/MidiDevice;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
instanceof com.sun.media.sound.AbstractMidiDeviceProvider$Info
ifeq 11
1: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.readDeviceInfos:()V
2: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.getDeviceCache:()[Ljavax/sound/midi/MidiDevice;
astore 2
start local 2 3: aload 0
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.getInfoCache:()[Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
astore 3
start local 3 4: aload 1
checkcast com.sun.media.sound.AbstractMidiDeviceProvider$Info
astore 4
start local 4 5: aload 4
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider$Info.getIndex:()I
istore 5
start local 5 6: iload 5
iflt 11
iload 5
aload 2
arraylength
if_icmpge 11
aload 3
iload 5
aaload
aload 1
if_acmpne 11
7: aload 2
iload 5
aaload
ifnonnull 9
8: aload 2
iload 5
aload 0
aload 4
invokevirtual com.sun.media.sound.AbstractMidiDeviceProvider.createDevice:(Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;)Ljavax/sound/midi/MidiDevice;
aastore
9: StackMap locals: com.sun.media.sound.AbstractMidiDeviceProvider javax.sound.midi.MidiDevice$Info javax.sound.midi.MidiDevice[] com.sun.media.sound.AbstractMidiDeviceProvider$Info[] com.sun.media.sound.AbstractMidiDeviceProvider$Info int
StackMap stack:
aload 2
iload 5
aaload
ifnull 11
10: aload 2
iload 5
aaload
areturn
end local 5 end local 4 end local 3 end local 2 11: StackMap locals: com.sun.media.sound.AbstractMidiDeviceProvider javax.sound.midi.MidiDevice$Info
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "MidiDevice "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual javax.sound.midi.MidiDevice$Info.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc " not supported by this provider."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/media/sound/AbstractMidiDeviceProvider;
0 14 1 info Ljavax/sound/midi/MidiDevice$Info;
3 11 2 devices [Ljavax/sound/midi/MidiDevice;
4 11 3 infos [Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
5 11 4 thisInfo Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
6 11 5 index I
MethodParameters:
Name Flags
info
abstract int getNumDevices();
descriptor: ()I
flags: (0x0400) ACC_ABSTRACT
abstract javax.sound.midi.MidiDevice[] getDeviceCache();
descriptor: ()[Ljavax/sound/midi/MidiDevice;
flags: (0x0400) ACC_ABSTRACT
abstract void setDeviceCache(javax.sound.midi.MidiDevice[]);
descriptor: ([Ljavax/sound/midi/MidiDevice;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
devices
abstract com.sun.media.sound.AbstractMidiDeviceProvider$Info[] getInfoCache();
descriptor: ()[Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
flags: (0x0400) ACC_ABSTRACT
abstract void setInfoCache(com.sun.media.sound.AbstractMidiDeviceProvider$Info[]);
descriptor: ([Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
infos
abstract com.sun.media.sound.AbstractMidiDeviceProvider$Info createInfo(int);
descriptor: (I)Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
index
abstract javax.sound.midi.MidiDevice createDevice(com.sun.media.sound.AbstractMidiDeviceProvider$Info);
descriptor: (Lcom/sun/media/sound/AbstractMidiDeviceProvider$Info;)Ljavax/sound/midi/MidiDevice;
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
info
}
SourceFile: "AbstractMidiDeviceProvider.java"
NestMembers:
com.sun.media.sound.AbstractMidiDeviceProvider$Info
InnerClasses:
Info = com.sun.media.sound.AbstractMidiDeviceProvider$Info of com.sun.media.sound.AbstractMidiDeviceProvider
public Info = javax.sound.midi.MidiDevice$Info of javax.sound.midi.MidiDevice