public final class jdk.nashorn.internal.runtime.QuotedStringTokenizer
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.QuotedStringTokenizer
super_class: java.lang.Object
{
private final java.util.LinkedList<java.lang.String> tokens;
descriptor: Ljava/util/LinkedList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedList<Ljava/lang/String;>;
private final char[] quotes;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
ldc " "
invokespecial jdk.nashorn.internal.runtime.QuotedStringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
0 2 1 str Ljava/lang/String;
MethodParameters:
Name Flags
str final
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_2
newarray 5
dup
iconst_0
bipush 34
castore
dup
iconst_1
bipush 39
castore
invokespecial jdk.nashorn.internal.runtime.QuotedStringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;[C)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
0 2 1 str Ljava/lang/String;
0 2 2 delim Ljava/lang/String;
MethodParameters:
Name Flags
str final
delim final
private void <init>(java.lang.String, java.lang.String, char[]);
descriptor: (Ljava/lang/String;Ljava/lang/String;[C)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 3
putfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.quotes:[C
2: iconst_1
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 9
5: StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.lang.String char[] int int
StackMap stack:
aload 2
iload 5
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isWhitespace:(C)Z
ifne 8
6: iconst_0
istore 4
7: goto 10
8: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
9: iload 5
aload 2
invokevirtual java.lang.String.length:()I
if_icmplt 5
end local 5 10: StackMap locals:
StackMap stack:
new java.util.StringTokenizer
dup
aload 1
aload 2
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 5
start local 5 11: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.tokens:Ljava/util/LinkedList;
12: goto 22
13: StackMap locals: java.util.StringTokenizer
StackMap stack:
aload 5
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 6
start local 6 14: goto 20
15: StackMap locals: java.lang.String
StackMap stack:
aload 5
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 17
16: new java.lang.IndexOutOfBoundsException
dup
aload 6
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 6
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
ifeq 18
ldc " "
goto 19
StackMap locals:
StackMap stack: java.lang.StringBuilder
18: aload 2
StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.lang.String char[] int java.util.StringTokenizer java.lang.String
StackMap stack: java.lang.StringBuilder java.lang.String
19: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 6
20: StackMap locals:
StackMap stack:
aload 0
aload 6
invokevirtual jdk.nashorn.internal.runtime.QuotedStringTokenizer.unmatchedQuotesIn:(Ljava/lang/String;)Z
ifne 15
21: aload 0
getfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.tokens:Ljava/util/LinkedList;
aload 0
aload 6
invokevirtual jdk.nashorn.internal.runtime.QuotedStringTokenizer.stripQuotes:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
end local 6 22: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 13
23: return
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 24 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
0 24 1 str Ljava/lang/String;
0 24 2 delim Ljava/lang/String;
0 24 3 quotes [C
3 24 4 delimIsWhitespace Z
4 10 5 i I
11 24 5 st Ljava/util/StringTokenizer;
14 22 6 token Ljava/lang/String;
MethodParameters:
Name Flags
str final
delim final
quotes final
public int countTokens();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.tokens:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
public boolean hasMoreTokens();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.internal.runtime.QuotedStringTokenizer.countTokens:()I
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
public java.lang.String nextToken();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.tokens:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.removeFirst:()Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
private java.lang.String stripQuotes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.quotes:[C
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 7
StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.lang.String top int int char[]
StackMap stack:
2: aload 6
iload 4
caload
istore 3
start local 3 3: aload 2
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 6
aload 2
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
aload 2
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
4: aload 2
iconst_1
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
5: aload 2
new java.lang.StringBuilder
dup
ldc "\\"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 2
end local 3 6: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
iload 5
if_icmplt 2
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
0 9 1 value0 Ljava/lang/String;
1 9 2 value Ljava/lang/String;
3 6 3 q C
MethodParameters:
Name Flags
value0 final
private boolean unmatchedQuotesIn(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=10, args_size=2
start local 0 start local 1 0: new java.util.Stack
dup
invokespecial java.util.Stack.<init>:()V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 17
3: StackMap locals: java.util.Stack int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: aload 0
getfield jdk.nashorn.internal.runtime.QuotedStringTokenizer.quotes:[C
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 15
StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.util.Stack int int top int int char[]
StackMap stack:
5: aload 8
iload 6
caload
istore 5
start local 5 6: iload 4
iload 5
if_icmpne 14
7: aload 2
invokevirtual java.util.Stack.isEmpty:()Z
ifeq 10
8: aload 2
iload 4
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
9: goto 14
10: StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.util.Stack int int int int int char[]
StackMap stack:
aload 2
invokevirtual java.util.Stack.pop:()Ljava/lang/Object;
checkcast java.lang.Character
invokevirtual java.lang.Character.charValue:()C
istore 9
start local 9 11: iload 9
iload 4
if_icmpeq 14
12: aload 2
iload 9
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 2
iload 4
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 9 end local 5 14: StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.util.Stack int int top int int char[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
15: iload 6
iload 7
if_icmplt 5
end local 4 16: iinc 3 1
StackMap locals: jdk.nashorn.internal.runtime.QuotedStringTokenizer java.lang.String java.util.Stack int
StackMap stack:
17: iload 3
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 3 18: aload 2
invokevirtual java.util.Stack.isEmpty:()Z
ifeq 19
iconst_0
goto 20
StackMap locals:
StackMap stack:
19: iconst_1
StackMap locals:
StackMap stack: int
20: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/nashorn/internal/runtime/QuotedStringTokenizer;
0 21 1 str Ljava/lang/String;
1 21 2 quoteStack Ljava/util/Stack<Ljava/lang/Character;>;
2 18 3 i I
4 16 4 c C
6 14 5 q C
11 14 9 top C
MethodParameters:
Name Flags
str final
}
SourceFile: "QuotedStringTokenizer.java"