public final class jdk.jfr.internal.consumer.StringParser extends jdk.jfr.internal.consumer.Parser
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.consumer.StringParser
super_class: jdk.jfr.internal.consumer.Parser
{
private static final java.nio.charset.Charset UTF8;
descriptor: Ljava/nio/charset/Charset;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.nio.charset.Charset LATIN1;
descriptor: Ljava/nio/charset/Charset;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final jdk.jfr.internal.consumer.ConstantLookup stringLookup;
descriptor: Ljdk/jfr/internal/consumer/ConstantLookup;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jfr.internal.consumer.StringParser$CharArrayParser charArrayParser;
descriptor: Ljdk/jfr/internal/consumer/StringParser$CharArrayParser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jfr.internal.consumer.StringParser$CharsetParser utf8parser;
descriptor: Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.jfr.internal.consumer.StringParser$CharsetParser latin1parser;
descriptor: Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean event;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "UTF-8"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putstatic jdk.jfr.internal.consumer.StringParser.UTF8:Ljava/nio/charset/Charset;
1: ldc "ISO-8859-1"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putstatic jdk.jfr.internal.consumer.StringParser.LATIN1:Ljava/nio/charset/Charset;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(jdk.jfr.internal.consumer.ConstantLookup, boolean);
descriptor: (Ljdk/jfr/internal/consumer/ConstantLookup;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial jdk.jfr.internal.consumer.Parser.<init>:()V
1: aload 0
new jdk.jfr.internal.consumer.StringParser$CharArrayParser
dup
invokespecial jdk.jfr.internal.consumer.StringParser$CharArrayParser.<init>:()V
putfield jdk.jfr.internal.consumer.StringParser.charArrayParser:Ljdk/jfr/internal/consumer/StringParser$CharArrayParser;
2: aload 0
new jdk.jfr.internal.consumer.StringParser$CharsetParser
dup
getstatic jdk.jfr.internal.consumer.StringParser.UTF8:Ljava/nio/charset/Charset;
invokespecial jdk.jfr.internal.consumer.StringParser$CharsetParser.<init>:(Ljava/nio/charset/Charset;)V
putfield jdk.jfr.internal.consumer.StringParser.utf8parser:Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
3: aload 0
new jdk.jfr.internal.consumer.StringParser$CharsetParser
dup
getstatic jdk.jfr.internal.consumer.StringParser.LATIN1:Ljava/nio/charset/Charset;
invokespecial jdk.jfr.internal.consumer.StringParser$CharsetParser.<init>:(Ljava/nio/charset/Charset;)V
putfield jdk.jfr.internal.consumer.StringParser.latin1parser:Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
4: aload 0
aload 1
putfield jdk.jfr.internal.consumer.StringParser.stringLookup:Ljdk/jfr/internal/consumer/ConstantLookup;
5: aload 0
iload 2
putfield jdk.jfr.internal.consumer.StringParser.event:Z
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/jfr/internal/consumer/StringParser;
0 7 1 stringLookup Ljdk/jfr/internal/consumer/ConstantLookup;
0 7 2 event Z
MethodParameters:
Name Flags
stringLookup
event
public java.lang.Object parse(jdk.jfr.internal.consumer.RecordingInput);
descriptor: (Ljdk/jfr/internal/consumer/RecordingInput;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.internal.consumer.RecordingInput.readByte:()B
istore 2
start local 2 1: getstatic jdk.jfr.internal.consumer.StringParser$Encoding.CONSTANT_POOL:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 6
2: aload 1
invokevirtual jdk.jfr.internal.consumer.RecordingInput.readLong:()J
lstore 3
start local 3 3: aload 0
getfield jdk.jfr.internal.consumer.StringParser.event:Z
ifeq 5
4: aload 0
getfield jdk.jfr.internal.consumer.StringParser.stringLookup:Ljdk/jfr/internal/consumer/ConstantLookup;
lload 3
invokevirtual jdk.jfr.internal.consumer.ConstantLookup.getCurrentResolved:(J)Ljava/lang/Object;
areturn
5: StackMap locals: int long
StackMap stack:
aload 0
getfield jdk.jfr.internal.consumer.StringParser.stringLookup:Ljdk/jfr/internal/consumer/ConstantLookup;
lload 3
invokevirtual jdk.jfr.internal.consumer.ConstantLookup.getCurrent:(J)Ljava/lang/Object;
areturn
end local 3 6: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.NULL:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 8
7: aconst_null
areturn
8: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.EMPTY_STRING:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 10
9: ldc ""
areturn
10: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.CHAR_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 12
11: aload 0
getfield jdk.jfr.internal.consumer.StringParser.charArrayParser:Ljdk/jfr/internal/consumer/StringParser$CharArrayParser;
aload 1
invokevirtual jdk.jfr.internal.consumer.StringParser$CharArrayParser.parse:(Ljdk/jfr/internal/consumer/RecordingInput;)Ljava/lang/Object;
areturn
12: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.UT8_BYTE_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 14
13: aload 0
getfield jdk.jfr.internal.consumer.StringParser.utf8parser:Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
aload 1
invokevirtual jdk.jfr.internal.consumer.StringParser$CharsetParser.parse:(Ljdk/jfr/internal/consumer/RecordingInput;)Ljava/lang/Object;
areturn
14: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.LATIN1_BYTE_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 16
15: aload 0
getfield jdk.jfr.internal.consumer.StringParser.latin1parser:Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
aload 1
invokevirtual jdk.jfr.internal.consumer.StringParser$CharsetParser.parse:(Ljdk/jfr/internal/consumer/RecordingInput;)Ljava/lang/Object;
areturn
16: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unknown string encoding "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/jfr/internal/consumer/StringParser;
0 17 1 input Ljdk/jfr/internal/consumer/RecordingInput;
1 17 2 encoding B
3 6 3 key J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
public void skip(jdk.jfr.internal.consumer.RecordingInput);
descriptor: (Ljdk/jfr/internal/consumer/RecordingInput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.jfr.internal.consumer.RecordingInput.readByte:()B
istore 2
start local 2 1: getstatic jdk.jfr.internal.consumer.StringParser$Encoding.CONSTANT_POOL:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 4
2: aload 1
invokevirtual jdk.jfr.internal.consumer.RecordingInput.readLong:()J
pop2
3: return
4: StackMap locals: int
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.EMPTY_STRING:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 6
5: return
6: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.NULL:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 8
7: return
8: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.CHAR_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 11
9: aload 0
getfield jdk.jfr.internal.consumer.StringParser.charArrayParser:Ljdk/jfr/internal/consumer/StringParser$CharArrayParser;
aload 1
invokevirtual jdk.jfr.internal.consumer.StringParser$CharArrayParser.skip:(Ljdk/jfr/internal/consumer/RecordingInput;)V
10: return
11: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.UT8_BYTE_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 14
12: aload 0
getfield jdk.jfr.internal.consumer.StringParser.utf8parser:Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
aload 1
invokevirtual jdk.jfr.internal.consumer.StringParser$CharsetParser.skip:(Ljdk/jfr/internal/consumer/RecordingInput;)V
13: return
14: StackMap locals:
StackMap stack:
getstatic jdk.jfr.internal.consumer.StringParser$Encoding.LATIN1_BYTE_ARRAY:Ljdk/jfr/internal/consumer/StringParser$Encoding;
iload 2
invokevirtual jdk.jfr.internal.consumer.StringParser$Encoding.is:(B)Z
ifeq 17
15: aload 0
getfield jdk.jfr.internal.consumer.StringParser.latin1parser:Ljdk/jfr/internal/consumer/StringParser$CharsetParser;
aload 1
invokevirtual jdk.jfr.internal.consumer.StringParser$CharsetParser.skip:(Ljdk/jfr/internal/consumer/RecordingInput;)V
16: return
17: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unknown string encoding "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/jfr/internal/consumer/StringParser;
0 18 1 input Ljdk/jfr/internal/consumer/RecordingInput;
1 18 2 encoding B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
}
SourceFile: "StringParser.java"
NestMembers:
jdk.jfr.internal.consumer.StringParser$CharArrayParser jdk.jfr.internal.consumer.StringParser$CharsetParser jdk.jfr.internal.consumer.StringParser$Encoding
InnerClasses:
private final CharArrayParser = jdk.jfr.internal.consumer.StringParser$CharArrayParser of jdk.jfr.internal.consumer.StringParser
private final CharsetParser = jdk.jfr.internal.consumer.StringParser$CharsetParser of jdk.jfr.internal.consumer.StringParser
public final Encoding = jdk.jfr.internal.consumer.StringParser$Encoding of jdk.jfr.internal.consumer.StringParser