public final class com.sun.codemodel.internal.JSwitch implements com.sun.codemodel.internal.JStatement
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.codemodel.internal.JSwitch
super_class: java.lang.Object
{
private com.sun.codemodel.internal.JExpression test;
descriptor: Lcom/sun/codemodel/internal/JExpression;
flags: (0x0002) ACC_PRIVATE
private java.util.List<com.sun.codemodel.internal.JCase> cases;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lcom/sun/codemodel/internal/JCase;>;
private com.sun.codemodel.internal.JCase defaultCase;
descriptor: Lcom/sun/codemodel/internal/JCase;
flags: (0x0002) ACC_PRIVATE
void <init>(com.sun.codemodel.internal.JExpression);
descriptor: (Lcom/sun/codemodel/internal/JExpression;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield com.sun.codemodel.internal.JSwitch.cases:Ljava/util/List;
2: aload 0
aconst_null
putfield com.sun.codemodel.internal.JSwitch.defaultCase:Lcom/sun/codemodel/internal/JCase;
3: aload 0
aload 1
putfield com.sun.codemodel.internal.JSwitch.test:Lcom/sun/codemodel/internal/JExpression;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/codemodel/internal/JSwitch;
0 5 1 test Lcom/sun/codemodel/internal/JExpression;
MethodParameters:
Name Flags
test
public com.sun.codemodel.internal.JExpression test();
descriptor: ()Lcom/sun/codemodel/internal/JExpression;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.codemodel.internal.JSwitch.test:Lcom/sun/codemodel/internal/JExpression;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/codemodel/internal/JSwitch;
public java.util.Iterator<com.sun.codemodel.internal.JCase> cases();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.codemodel.internal.JSwitch.cases:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/codemodel/internal/JSwitch;
Signature: ()Ljava/util/Iterator<Lcom/sun/codemodel/internal/JCase;>;
public com.sun.codemodel.internal.JCase _case(com.sun.codemodel.internal.JExpression);
descriptor: (Lcom/sun/codemodel/internal/JExpression;)Lcom/sun/codemodel/internal/JCase;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new com.sun.codemodel.internal.JCase
dup
aload 1
invokespecial com.sun.codemodel.internal.JCase.<init>:(Lcom/sun/codemodel/internal/JExpression;)V
astore 2
start local 2 1: aload 0
getfield com.sun.codemodel.internal.JSwitch.cases:Ljava/util/List;
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/codemodel/internal/JSwitch;
0 3 1 label Lcom/sun/codemodel/internal/JExpression;
1 3 2 c Lcom/sun/codemodel/internal/JCase;
MethodParameters:
Name Flags
label
public com.sun.codemodel.internal.JCase _default();
descriptor: ()Lcom/sun/codemodel/internal/JCase;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
new com.sun.codemodel.internal.JCase
dup
aconst_null
iconst_1
invokespecial com.sun.codemodel.internal.JCase.<init>:(Lcom/sun/codemodel/internal/JExpression;Z)V
putfield com.sun.codemodel.internal.JSwitch.defaultCase:Lcom/sun/codemodel/internal/JCase;
1: aload 0
getfield com.sun.codemodel.internal.JSwitch.defaultCase:Lcom/sun/codemodel/internal/JCase;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/JSwitch;
public void state(com.sun.codemodel.internal.JFormatter);
descriptor: (Lcom/sun/codemodel/internal/JFormatter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.codemodel.internal.JSwitch.test:Lcom/sun/codemodel/internal/JExpression;
invokestatic com.sun.codemodel.internal.JOp.hasTopOp:(Lcom/sun/codemodel/internal/JExpression;)Z
ifeq 3
1: aload 1
ldc "switch "
invokevirtual com.sun.codemodel.internal.JFormatter.p:(Ljava/lang/String;)Lcom/sun/codemodel/internal/JFormatter;
aload 0
getfield com.sun.codemodel.internal.JSwitch.test:Lcom/sun/codemodel/internal/JExpression;
invokevirtual com.sun.codemodel.internal.JFormatter.g:(Lcom/sun/codemodel/internal/JGenerable;)Lcom/sun/codemodel/internal/JFormatter;
ldc " {"
invokevirtual com.sun.codemodel.internal.JFormatter.p:(Ljava/lang/String;)Lcom/sun/codemodel/internal/JFormatter;
invokevirtual com.sun.codemodel.internal.JFormatter.nl:()Lcom/sun/codemodel/internal/JFormatter;
pop
2: goto 4
3: StackMap locals:
StackMap stack:
aload 1
ldc "switch ("
invokevirtual com.sun.codemodel.internal.JFormatter.p:(Ljava/lang/String;)Lcom/sun/codemodel/internal/JFormatter;
aload 0
getfield com.sun.codemodel.internal.JSwitch.test:Lcom/sun/codemodel/internal/JExpression;
invokevirtual com.sun.codemodel.internal.JFormatter.g:(Lcom/sun/codemodel/internal/JGenerable;)Lcom/sun/codemodel/internal/JFormatter;
bipush 41
invokevirtual com.sun.codemodel.internal.JFormatter.p:(C)Lcom/sun/codemodel/internal/JFormatter;
ldc " {"
invokevirtual com.sun.codemodel.internal.JFormatter.p:(Ljava/lang/String;)Lcom/sun/codemodel/internal/JFormatter;
invokevirtual com.sun.codemodel.internal.JFormatter.nl:()Lcom/sun/codemodel/internal/JFormatter;
pop
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.codemodel.internal.JSwitch.cases:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.sun.codemodel.internal.JSwitch com.sun.codemodel.internal.JFormatter top java.util.Iterator
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.codemodel.internal.JCase
astore 2
start local 2 6: aload 1
aload 2
invokevirtual com.sun.codemodel.internal.JFormatter.s:(Lcom/sun/codemodel/internal/JStatement;)Lcom/sun/codemodel/internal/JFormatter;
pop
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 0
getfield com.sun.codemodel.internal.JSwitch.defaultCase:Lcom/sun/codemodel/internal/JCase;
ifnull 10
9: aload 1
aload 0
getfield com.sun.codemodel.internal.JSwitch.defaultCase:Lcom/sun/codemodel/internal/JCase;
invokevirtual com.sun.codemodel.internal.JFormatter.s:(Lcom/sun/codemodel/internal/JStatement;)Lcom/sun/codemodel/internal/JFormatter;
pop
10: StackMap locals: com.sun.codemodel.internal.JSwitch com.sun.codemodel.internal.JFormatter
StackMap stack:
aload 1
bipush 125
invokevirtual com.sun.codemodel.internal.JFormatter.p:(C)Lcom/sun/codemodel/internal/JFormatter;
invokevirtual com.sun.codemodel.internal.JFormatter.nl:()Lcom/sun/codemodel/internal/JFormatter;
pop
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/codemodel/internal/JSwitch;
0 12 1 f Lcom/sun/codemodel/internal/JFormatter;
6 7 2 c Lcom/sun/codemodel/internal/JCase;
MethodParameters:
Name Flags
f
}
SourceFile: "JSwitch.java"