class jdk.jshell.OuterWrap$WrappedDiagnostic extends jdk.jshell.Diag
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jshell.OuterWrap$WrappedDiagnostic
super_class: jdk.jshell.Diag
{
final javax.tools.Diagnostic<? extends javax.tools.JavaFileObject> diag;
descriptor: Ljavax/tools/Diagnostic;
flags: (0x0010) ACC_FINAL
Signature: Ljavax/tools/Diagnostic<+Ljavax/tools/JavaFileObject;>;
final jdk.jshell.OuterWrap this$0;
descriptor: Ljdk/jshell/OuterWrap;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(javax.tools.Diagnostic<? extends javax.tools.JavaFileObject>);
descriptor: (Ljdk/jshell/OuterWrap;Ljavax/tools/Diagnostic;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.jshell.OuterWrap$WrappedDiagnostic.this$0:Ljdk/jshell/OuterWrap;
aload 0
invokespecial jdk.jshell.Diag.<init>:()V
1: aload 0
aload 2
putfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
0 3 2 diag Ljavax/tools/Diagnostic<+Ljavax/tools/JavaFileObject;>;
Signature: (Ljavax/tools/Diagnostic<+Ljavax/tools/JavaFileObject;>;)V
MethodParameters:
Name Flags
this$0 final
diag
public boolean isError();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
invokeinterface javax.tools.Diagnostic.getKind:()Ljavax/tools/Diagnostic$Kind;
getstatic javax.tools.Diagnostic$Kind.ERROR:Ljavax/tools/Diagnostic$Kind;
if_acmpne 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/jshell/OuterWrap$WrappedDiagnostic;
public long getPosition();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.this$0:Ljdk/jshell/OuterWrap;
aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
invokeinterface javax.tools.Diagnostic.getPosition:()J
invokevirtual jdk.jshell.OuterWrap.wrapIndexToSnippetIndex:(J)I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
public long getStartPosition();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.this$0:Ljdk/jshell/OuterWrap;
aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
invokeinterface javax.tools.Diagnostic.getStartPosition:()J
invokevirtual jdk.jshell.OuterWrap.wrapIndexToSnippetIndex:(J)I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
public long getEndPosition();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.this$0:Ljdk/jshell/OuterWrap;
aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
invokeinterface javax.tools.Diagnostic.getEndPosition:()J
invokevirtual jdk.jshell.OuterWrap.wrapIndexToSnippetIndex:(J)I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
public java.lang.String getCode();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
invokeinterface javax.tools.Diagnostic.getCode:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
public java.lang.String getMessage(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
aload 1
invokeinterface javax.tools.Diagnostic.getMessage:(Ljava/util/Locale;)Ljava/lang/String;
invokestatic jdk.jshell.Util.expunge:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
boolean isResolutionError();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokespecial jdk.jshell.Diag.isResolutionError:()Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.OuterWrap$WrappedDiagnostic.diag:Ljavax/tools/Diagnostic;
getstatic jdk.jshell.Util.PARSED_LOCALE:Ljava/util/Locale;
invokeinterface javax.tools.Diagnostic.getMessage:(Ljava/util/Locale;)Ljava/lang/String;
ldc "\\r?\\n"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 8
StackMap locals: jdk.jshell.OuterWrap$WrappedDiagnostic top int int java.lang.String[]
StackMap stack:
3: aload 4
iload 2
aaload
astore 1
start local 1 4: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
ldc "location:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 7
5: aload 1
ldc "$JShell$"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 7
6: iconst_0
ireturn
end local 1 7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 3
if_icmplt 3
9: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
4 7 1 line Ljava/lang/String;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "WrappedDiagnostic("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
aconst_null
invokevirtual jdk.jshell.OuterWrap$WrappedDiagnostic.getMessage:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual jdk.jshell.OuterWrap$WrappedDiagnostic.getPosition:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/OuterWrap$WrappedDiagnostic;
}
SourceFile: "OuterWrap.java"
NestHost: jdk.jshell.OuterWrap
InnerClasses:
public final Kind = javax.tools.Diagnostic$Kind of javax.tools.Diagnostic
WrappedDiagnostic = jdk.jshell.OuterWrap$WrappedDiagnostic of jdk.jshell.OuterWrap