public abstract class com.sun.media.sound.ModelInstrument extends javax.sound.midi.Instrument
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.sun.media.sound.ModelInstrument
super_class: javax.sound.midi.Instrument
{
protected void <init>(javax.sound.midi.Soundbank, javax.sound.midi.Patch, java.lang.String, java.lang.Class<?>);
descriptor: (Ljavax/sound/midi/Soundbank;Ljavax/sound/midi/Patch;Ljava/lang/String;Ljava/lang/Class;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
aload 3
aload 4
invokespecial javax.sound.midi.Instrument.<init>:(Ljavax/sound/midi/Soundbank;Ljavax/sound/midi/Patch;Ljava/lang/String;Ljava/lang/Class;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/media/sound/ModelInstrument;
0 2 1 soundbank Ljavax/sound/midi/Soundbank;
0 2 2 patch Ljavax/sound/midi/Patch;
0 2 3 name Ljava/lang/String;
0 2 4 dataClass Ljava/lang/Class<*>;
Signature: (Ljavax/sound/midi/Soundbank;Ljavax/sound/midi/Patch;Ljava/lang/String;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
soundbank
patch
name
dataClass
public com.sun.media.sound.ModelDirector getDirector(com.sun.media.sound.ModelPerformer[], javax.sound.midi.MidiChannel, com.sun.media.sound.ModelDirectedPlayer);
descriptor: ([Lcom/sun/media/sound/ModelPerformer;Ljavax/sound/midi/MidiChannel;Lcom/sun/media/sound/ModelDirectedPlayer;)Lcom/sun/media/sound/ModelDirector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new com.sun.media.sound.ModelStandardIndexedDirector
dup
aload 1
aload 3
invokespecial com.sun.media.sound.ModelStandardIndexedDirector.<init>:([Lcom/sun/media/sound/ModelPerformer;Lcom/sun/media/sound/ModelDirectedPlayer;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/ModelInstrument;
0 1 1 performers [Lcom/sun/media/sound/ModelPerformer;
0 1 2 channel Ljavax/sound/midi/MidiChannel;
0 1 3 player Lcom/sun/media/sound/ModelDirectedPlayer;
MethodParameters:
Name Flags
performers
channel
player
public com.sun.media.sound.ModelPerformer[] getPerformers();
descriptor: ()[Lcom/sun/media/sound/ModelPerformer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
anewarray com.sun.media.sound.ModelPerformer
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/ModelInstrument;
public com.sun.media.sound.ModelChannelMixer getChannelMixer(javax.sound.midi.MidiChannel, javax.sound.sampled.AudioFormat);
descriptor: (Ljavax/sound/midi/MidiChannel;Ljavax/sound/sampled/AudioFormat;)Lcom/sun/media/sound/ModelChannelMixer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/media/sound/ModelInstrument;
0 1 1 channel Ljavax/sound/midi/MidiChannel;
0 1 2 format Ljavax/sound/sampled/AudioFormat;
MethodParameters:
Name Flags
channel
format
public final javax.sound.midi.Patch getPatchAlias();
descriptor: ()Ljavax/sound/midi/Patch;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPatch:()Ljavax/sound/midi/Patch;
astore 1
start local 1 1: aload 1
invokevirtual javax.sound.midi.Patch.getProgram:()I
istore 2
start local 2 2: aload 1
invokevirtual javax.sound.midi.Patch.getBank:()I
istore 3
start local 3 3: iload 3
ifeq 5
4: aload 1
areturn
5: StackMap locals: javax.sound.midi.Patch int int
StackMap stack:
iconst_0
istore 4
start local 4 6: aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPatch:()Ljavax/sound/midi/Patch;
instanceof com.sun.media.sound.ModelPatch
ifeq 8
7: aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPatch:()Ljavax/sound/midi/Patch;
checkcast com.sun.media.sound.ModelPatch
invokevirtual com.sun.media.sound.ModelPatch.isPercussion:()Z
istore 4
8: StackMap locals: int
StackMap stack:
iload 4
ifeq 10
9: new javax.sound.midi.Patch
dup
sipush 15360
iload 2
invokespecial javax.sound.midi.Patch.<init>:(II)V
areturn
10: StackMap locals:
StackMap stack:
new javax.sound.midi.Patch
dup
sipush 15488
iload 2
invokespecial javax.sound.midi.Patch.<init>:(II)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/media/sound/ModelInstrument;
1 11 1 patch Ljavax/sound/midi/Patch;
2 11 2 program I
3 11 3 bank I
6 11 4 percussion Z
public final java.lang.String[] getKeys();
descriptor: ()[Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=8, args_size=1
start local 0 0: sipush 128
anewarray java.lang.String
astore 1
start local 1 1: aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPerformers:()[Lcom/sun/media/sound/ModelPerformer;
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 13
StackMap locals: com.sun.media.sound.ModelInstrument java.lang.String[] top int int com.sun.media.sound.ModelPerformer[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 2
invokevirtual com.sun.media.sound.ModelPerformer.getKeyFrom:()I
istore 6
start local 6 4: goto 11
5: StackMap locals: com.sun.media.sound.ModelInstrument java.lang.String[] com.sun.media.sound.ModelPerformer int int com.sun.media.sound.ModelPerformer[] int
StackMap stack:
iload 6
iflt 10
iload 6
sipush 128
if_icmpge 10
aload 1
iload 6
aaload
ifnonnull 10
6: aload 2
invokevirtual com.sun.media.sound.ModelPerformer.getName:()Ljava/lang/String;
astore 7
start local 7 7: aload 7
ifnonnull 9
8: ldc "untitled"
astore 7
9: StackMap locals: java.lang.String
StackMap stack:
aload 1
iload 6
aload 7
aastore
end local 7 10: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
11: iload 6
aload 2
invokevirtual com.sun.media.sound.ModelPerformer.getKeyTo:()I
if_icmple 5
end local 6 end local 2 12: iinc 3 1
StackMap locals: com.sun.media.sound.ModelInstrument java.lang.String[] top int int com.sun.media.sound.ModelPerformer[]
StackMap stack:
13: iload 3
iload 4
if_icmplt 2
14: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lcom/sun/media/sound/ModelInstrument;
1 15 1 keys [Ljava/lang/String;
3 12 2 performer Lcom/sun/media/sound/ModelPerformer;
4 12 6 k I
7 10 7 name Ljava/lang/String;
public final boolean[] getChannels();
descriptor: ()[Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPatch:()Ljavax/sound/midi/Patch;
instanceof com.sun.media.sound.ModelPatch
ifeq 3
2: aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPatch:()Ljavax/sound/midi/Patch;
checkcast com.sun.media.sound.ModelPatch
invokevirtual com.sun.media.sound.ModelPatch.isPercussion:()Z
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
ifeq 12
4: bipush 16
newarray 4
astore 2
start local 2 5: iconst_0
istore 3
start local 3 6: goto 9
7: StackMap locals: boolean[] int
StackMap stack:
aload 2
iload 3
iconst_0
bastore
8: iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
aload 2
arraylength
if_icmplt 7
end local 3 10: aload 2
bipush 9
iconst_1
bastore
11: aload 2
areturn
end local 2 12: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.media.sound.ModelInstrument.getPatch:()Ljavax/sound/midi/Patch;
invokevirtual javax.sound.midi.Patch.getBank:()I
istore 2
start local 2 13: iload 2
bipush 7
ishr
bipush 120
if_icmpeq 14
iload 2
bipush 7
ishr
bipush 121
if_icmpne 21
14: StackMap locals: int
StackMap stack:
bipush 16
newarray 4
astore 3
start local 3 15: iconst_0
istore 4
start local 4 16: goto 19
17: StackMap locals: boolean[] int
StackMap stack:
aload 3
iload 4
iconst_1
bastore
18: iinc 4 1
StackMap locals:
StackMap stack:
19: iload 4
aload 3
arraylength
if_icmplt 17
end local 4 20: aload 3
areturn
end local 3 21: StackMap locals:
StackMap stack:
bipush 16
newarray 4
astore 3
start local 3 22: iconst_0
istore 4
start local 4 23: goto 26
24: StackMap locals: boolean[] int
StackMap stack:
aload 3
iload 4
iconst_1
bastore
25: iinc 4 1
StackMap locals:
StackMap stack:
26: iload 4
aload 3
arraylength
if_icmplt 24
end local 4 27: aload 3
bipush 9
iconst_0
bastore
28: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lcom/sun/media/sound/ModelInstrument;
1 29 1 percussion Z
5 12 2 ch [Z
6 10 3 i I
13 29 2 bank I
15 21 3 ch [Z
16 20 4 i I
22 29 3 ch [Z
23 27 4 i I
}
SourceFile: "ModelInstrument.java"