public class sun.jvm.hotspot.SAGetopt
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.jvm.hotspot.SAGetopt
super_class: java.lang.Object
{
private java.lang.String[] _argv;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int _optind;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int _optopt;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String _optarg;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean _optreset;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual java.lang.String[].clone:()Ljava/lang/Object;
checkcast java.lang.String[]
putfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
2: aload 0
iconst_0
putfield sun.jvm.hotspot.SAGetopt._optind:I
3: aload 0
iconst_1
putfield sun.jvm.hotspot.SAGetopt._optopt:I
4: aload 0
aconst_null
putfield sun.jvm.hotspot.SAGetopt._optarg:Ljava/lang/String;
5: aload 0
iconst_1
putfield sun.jvm.hotspot.SAGetopt._optreset:Z
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/SAGetopt;
0 7 1 args [Ljava/lang/String;
MethodParameters:
Name Flags
args
public java.lang.String getOptarg();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.SAGetopt._optarg:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/SAGetopt;
public int getOptind();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/jvm/hotspot/SAGetopt;
private void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
arraylength
if_icmple 2
1: new sun.jvm.hotspot.SAGetoptException
dup
new java.lang.StringBuilder
dup
ldc "Not enough arguments for '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.SAGetoptException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aaload
invokevirtual java.lang.String.isEmpty:()Z
ifne 4
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aaload
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpne 4
3: new sun.jvm.hotspot.SAGetoptException
dup
new java.lang.StringBuilder
dup
ldc "Argument is expected for '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.SAGetoptException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aaload
putfield sun.jvm.hotspot.SAGetopt._optarg:Ljava/lang/String;
5: aload 0
dup
getfield sun.jvm.hotspot.SAGetopt._optind:I
iconst_1
iadd
putfield sun.jvm.hotspot.SAGetopt._optind:I
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/jvm/hotspot/SAGetopt;
0 7 1 opt Ljava/lang/String;
MethodParameters:
Name Flags
opt
private java.lang.String processLongOptions(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
astore 3
start local 3 1: aload 1
ldc "="
iconst_2
invokevirtual java.lang.String.split:(Ljava/lang/String;I)[Ljava/lang/String;
astore 4
start local 4 2: aload 3
aload 4
iconst_0
aaload
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 6
3: aload 4
arraylength
iconst_1
if_icmple 5
4: new sun.jvm.hotspot.SAGetoptException
dup
new java.lang.StringBuilder
dup
ldc "Argument is not expected for '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.SAGetoptException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.util.List java.lang.String[]
StackMap stack:
aload 1
areturn
6: StackMap locals:
StackMap stack:
aload 3
new java.lang.StringBuilder
dup
aload 4
iconst_0
aaload
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 15
7: aload 4
arraylength
iconst_1
if_icmple 10
8: aload 0
aload 4
iconst_1
aaload
putfield sun.jvm.hotspot.SAGetopt._optarg:Ljava/lang/String;
9: goto 14
10: StackMap locals:
StackMap stack:
aload 0
aload 4
iconst_0
aaload
invokevirtual sun.jvm.hotspot.SAGetopt.extractOptarg:(Ljava/lang/String;)V
11: goto 14
StackMap locals:
StackMap stack: java.lang.ArrayIndexOutOfBoundsException
12: pop
13: new sun.jvm.hotspot.SAGetoptException
dup
new java.lang.StringBuilder
dup
ldc "Argument is expected for '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.SAGetoptException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 4
iconst_0
aaload
areturn
15: StackMap locals:
StackMap stack:
new sun.jvm.hotspot.SAGetoptException
dup
new java.lang.StringBuilder
dup
ldc "Invalid option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
iconst_0
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.SAGetoptException.<init>:(Ljava/lang/String;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/jvm/hotspot/SAGetopt;
0 16 1 carg Ljava/lang/String;
0 16 2 longOptStr [Ljava/lang/String;
1 16 3 los Ljava/util/List<Ljava/lang/String;>;
2 16 4 ca [Ljava/lang/String;
Exception table:
from to target type
10 11 12 Class java.lang.ArrayIndexOutOfBoundsException
MethodParameters:
Name Flags
carg
longOptStr
public java.lang.String next(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
arraylength
if_icmpge 1
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aaload
ifnonnull 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.jvm.hotspot.SAGetopt._argv:[Ljava/lang/String;
aload 0
getfield sun.jvm.hotspot.SAGetopt._optind:I
aaload
astore 3
start local 3 3: aload 0
aconst_null
putfield sun.jvm.hotspot.SAGetopt._optarg:Ljava/lang/String;
4: aload 0
getfield sun.jvm.hotspot.SAGetopt._optreset:Z
ifeq 17
5: aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifne 6
aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpne 6
aload 3
ldc "--"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
7: StackMap locals:
StackMap stack:
aload 3
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
8: aload 2
ifnull 9
aload 2
arraylength
ifne 10
9: StackMap locals:
StackMap stack:
aconst_null
areturn
10: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.jvm.hotspot.SAGetopt._optind:I
iconst_1
iadd
putfield sun.jvm.hotspot.SAGetopt._optind:I
11: aload 3
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
12: aload 0
aload 3
aload 2
invokevirtual sun.jvm.hotspot.SAGetopt.processLongOptions:(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;
areturn
13: StackMap locals:
StackMap stack:
aload 1
ifnull 14
aload 1
invokevirtual java.lang.String.length:()I
ifne 15
14: StackMap locals:
StackMap stack:
aconst_null
areturn
15: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.jvm.hotspot.SAGetopt._optreset:Z
16: aload 0
iconst_1
putfield sun.jvm.hotspot.SAGetopt._optopt:I
17: StackMap locals:
StackMap stack:
aload 3
aload 0
getfield sun.jvm.hotspot.SAGetopt._optopt:I
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 18: aload 0
dup
getfield sun.jvm.hotspot.SAGetopt._optopt:I
iconst_1
iadd
putfield sun.jvm.hotspot.SAGetopt._optopt:I
19: aload 1
iload 4
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 20: iload 5
iconst_m1
if_icmpne 22
21: new sun.jvm.hotspot.SAGetoptException
dup
new java.lang.StringBuilder
dup
ldc "Invalid option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial sun.jvm.hotspot.SAGetoptException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.jvm.hotspot.SAGetopt._optopt:I
aload 3
invokevirtual java.lang.String.length:()I
if_icmplt 25
23: aload 0
dup
getfield sun.jvm.hotspot.SAGetopt._optind:I
iconst_1
iadd
putfield sun.jvm.hotspot.SAGetopt._optind:I
24: aload 0
iconst_1
putfield sun.jvm.hotspot.SAGetopt._optreset:Z
25: StackMap locals:
StackMap stack:
iload 5
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpge 27
aload 1
iload 5
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 58
if_icmpne 27
26: aload 0
iload 4
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokevirtual sun.jvm.hotspot.SAGetopt.extractOptarg:(Ljava/lang/String;)V
27: StackMap locals:
StackMap stack:
iload 4
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/jvm/hotspot/SAGetopt;
0 28 1 optStr Ljava/lang/String;
0 28 2 longOptStr [Ljava/lang/String;
3 28 3 carg Ljava/lang/String;
18 28 4 ch C
20 28 5 chIndex I
MethodParameters:
Name Flags
optStr
longOptStr
}
SourceFile: "SAGetopt.java"