public class jdk.internal.shellsupport.doc.JavadocFormatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.shellsupport.doc.JavadocFormatter
super_class: java.lang.Object
{
private static final java.lang.String CODE_RESET;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\u001B[0m"
private static final java.lang.String CODE_HIGHLIGHT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\u001B[1m"
private static final java.lang.String CODE_UNDERLINE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\u001B[4m"
private final int lineLimit;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean escapeSequencesSupported;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int MAX_LINE_LENGTH;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 95
private static final int SHORTEST_LINE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 30
private static final int INDENT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final java.util.Map<jdk.internal.shellsupport.doc.JavadocFormatter$Sections, java.lang.String> docSections;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljdk/internal/shellsupport/doc/JavadocFormatter$Sections;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putstatic jdk.internal.shellsupport.doc.JavadocFormatter.docSections:Ljava/util/Map;
1: ldc "jdk.internal.shellsupport.doc.resources.javadocformatter"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
2: astore 0
start local 0 3: getstatic jdk.internal.shellsupport.doc.JavadocFormatter.docSections:Ljava/util/Map;
getstatic jdk.internal.shellsupport.doc.JavadocFormatter$Sections.TYPE_PARAMS:Ljdk/internal/shellsupport/doc/JavadocFormatter$Sections;
aload 0
ldc "CAP_TypeParameters"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: getstatic jdk.internal.shellsupport.doc.JavadocFormatter.docSections:Ljava/util/Map;
getstatic jdk.internal.shellsupport.doc.JavadocFormatter$Sections.PARAMS:Ljdk/internal/shellsupport/doc/JavadocFormatter$Sections;
aload 0
ldc "CAP_Parameters"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: getstatic jdk.internal.shellsupport.doc.JavadocFormatter.docSections:Ljava/util/Map;
getstatic jdk.internal.shellsupport.doc.JavadocFormatter$Sections.RETURNS:Ljdk/internal/shellsupport/doc/JavadocFormatter$Sections;
aload 0
ldc "CAP_Returns"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: getstatic jdk.internal.shellsupport.doc.JavadocFormatter.docSections:Ljava/util/Map;
getstatic jdk.internal.shellsupport.doc.JavadocFormatter$Sections.THROWS:Ljdk/internal/shellsupport/doc/JavadocFormatter$Sections;
aload 0
ldc "CAP_Thrown_Exceptions"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 0 7: return
LocalVariableTable:
Start End Slot Name Signature
3 7 0 bundle Ljava/util/ResourceBundle;
public void <init>(int, boolean);
descriptor: (IZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield jdk.internal.shellsupport.doc.JavadocFormatter.lineLimit:I
2: aload 0
iload 2
putfield jdk.internal.shellsupport.doc.JavadocFormatter.escapeSequencesSupported:Z
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/shellsupport/doc/JavadocFormatter;
0 4 1 lineLimit I
0 4 2 escapeSequencesSupported Z
MethodParameters:
Name Flags
lineLimit
escapeSequencesSupported
public java.lang.String formatJavadoc(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 1: aload 3
aload 0
ldc "\u001B[1m"
invokevirtual jdk.internal.shellsupport.doc.JavadocFormatter.escape:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
ldc "\u001B[0m"
invokevirtual jdk.internal.shellsupport.doc.JavadocFormatter.escape:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 2
ifnonnull 5
3: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: areturn
5: StackMap locals: java.lang.StringBuilder
StackMap stack:
invokestatic javax.tools.ToolProvider.getSystemJavaCompiler:()Ljavax/tools/JavaCompiler;
aconst_null
aconst_null
aconst_null
aconst_null
aconst_null
aconst_null
invokeinterface javax.tools.JavaCompiler.getTask:(Ljava/io/Writer;Ljavax/tools/JavaFileManager;Ljavax/tools/DiagnosticListener;Ljava/lang/Iterable;Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljavax/tools/JavaCompiler$CompilationTask;
checkcast com.sun.source.util.JavacTask
astore 4
start local 4 6: aload 4
invokestatic com.sun.source.util.DocTrees.instance:(Ljavax/tools/JavaCompiler$CompilationTask;)Lcom/sun/source/util/DocTrees;
astore 5
start local 5 7: aload 5
new jdk.internal.shellsupport.doc.JavadocFormatter$1
dup
aload 0
new java.net.URI
dup
ldc "mem://doc.html"
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
getstatic javax.tools.JavaFileObject$Kind.HTML:Ljavax/tools/JavaFileObject$Kind;
aload 2
invokespecial jdk.internal.shellsupport.doc.JavadocFormatter$1.<init>:(Ljdk/internal/shellsupport/doc/JavadocFormatter;Ljava/net/URI;Ljavax/tools/JavaFileObject$Kind;Ljava/lang/String;)V
invokevirtual com.sun.source.util.DocTrees.getDocCommentTree:(Ljavax/tools/FileObject;)Lcom/sun/source/doctree/DocCommentTree;
astore 6
start local 6 8: new jdk.internal.shellsupport.doc.JavadocFormatter$FormatJavadocScanner
dup
aload 0
aload 3
aload 4
invokespecial jdk.internal.shellsupport.doc.JavadocFormatter$FormatJavadocScanner.<init>:(Ljdk/internal/shellsupport/doc/JavadocFormatter;Ljava/lang/StringBuilder;Lcom/sun/source/util/JavacTask;)V
aload 6
aconst_null
invokevirtual jdk.internal.shellsupport.doc.JavadocFormatter$FormatJavadocScanner.scan:(Lcom/sun/source/doctree/DocTree;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 3
invokestatic jdk.internal.shellsupport.doc.JavadocFormatter.addNewLineIfNeeded:(Ljava/lang/StringBuilder;)V
10: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: areturn
end local 6 end local 5 end local 4 end local 3 12: StackMap locals: jdk.internal.shellsupport.doc.JavadocFormatter java.lang.String java.lang.String
StackMap stack: java.net.URISyntaxException
astore 3
start local 3 13: new java.lang.InternalError
dup
ldc "Unexpected exception"
aload 3
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/internal/shellsupport/doc/JavadocFormatter;
0 14 1 header Ljava/lang/String;
0 14 2 javadoc Ljava/lang/String;
1 12 3 result Ljava/lang/StringBuilder;
6 12 4 task Lcom/sun/source/util/JavacTask;
7 12 5 trees Lcom/sun/source/util/DocTrees;
8 12 6 docComment Lcom/sun/source/doctree/DocCommentTree;
13 14 3 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
0 4 12 Class java.net.URISyntaxException
5 11 12 Class java.net.URISyntaxException
MethodParameters:
Name Flags
header
javadoc
private java.lang.String escape(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.shellsupport.doc.JavadocFormatter.escapeSequencesSupported:Z
ifeq 1
aload 1
goto 2
StackMap locals:
StackMap stack:
1: ldc ""
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/shellsupport/doc/JavadocFormatter;
0 3 1 sequence Ljava/lang/String;
MethodParameters:
Name Flags
sequence
private static java.lang.String indentString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iload 0
newarray 5
astore 1
start local 1 1: aload 1
bipush 32
invokestatic java.util.Arrays.fill:([CC)V
2: new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([C)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 indent I
1 3 1 content [C
MethodParameters:
Name Flags
indent
private static void reflow(java.lang.StringBuilder, int, int, int);
descriptor: (Ljava/lang/StringBuilder;III)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
istore 4
start local 4 1: goto 3
2: StackMap locals: int
StackMap stack:
iinc 4 -1
3: StackMap locals:
StackMap stack:
iload 4
ifle 4
aload 0
iload 4
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
bipush 10
if_icmpne 2
4: StackMap locals:
StackMap stack:
iload 1
iload 4
isub
istore 5
start local 5 5: iload 1
istore 6
start local 6 6: iconst_m1
istore 7
start local 7 7: goto 19
8: StackMap locals: int int int
StackMap stack:
aload 0
iload 6
invokevirtual java.lang.StringBuilder.charAt:(I)C
bipush 32
if_icmpne 10
9: iload 6
istore 7
10: StackMap locals:
StackMap stack:
iload 5
iload 3
if_icmplt 17
11: iload 7
iconst_m1
if_icmpeq 17
12: aload 0
iload 7
bipush 10
invokevirtual java.lang.StringBuilder.setCharAt:(IC)V
13: aload 0
iload 7
iconst_1
iadd
iload 2
invokestatic jdk.internal.shellsupport.doc.JavadocFormatter.indentString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.insert:(ILjava/lang/String;)Ljava/lang/StringBuilder;
pop
14: iload 2
iload 6
iadd
iload 7
isub
iconst_1
isub
istore 5
15: iload 6
iload 2
iadd
istore 6
16: iconst_m1
istore 7
17: StackMap locals:
StackMap stack:
iinc 5 1
18: iinc 6 1
19: StackMap locals:
StackMap stack:
iload 6
aload 0
invokevirtual java.lang.StringBuilder.length:()I
if_icmplt 8
20: return
end local 7 end local 6 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 21 0 text Ljava/lang/StringBuilder;
0 21 1 from I
0 21 2 indent I
0 21 3 limit I
1 21 4 lineStart I
5 21 5 lineChars I
6 21 6 pointer I
7 21 7 lastSpace I
MethodParameters:
Name Flags
text
from
indent
limit
private static void addNewLineIfNeeded(java.lang.StringBuilder);
descriptor: (Ljava/lang/StringBuilder;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.StringBuilder.length:()I
ifle 2
aload 0
aload 0
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
bipush 10
if_icmpeq 2
1: aload 0
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 text Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
text
private static void addSpaceIfNeeded(java.lang.StringBuilder);
descriptor: (Ljava/lang/StringBuilder;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.StringBuilder.length:()I
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
aload 0
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
istore 1
start local 1 3: iload 1
bipush 32
if_icmpeq 5
iload 1
bipush 10
if_icmpeq 5
4: aload 0
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals: int
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 text Ljava/lang/StringBuilder;
3 6 1 last C
MethodParameters:
Name Flags
text
private static com.sun.tools.doclint.HtmlTag getHtmlTag(javax.lang.model.element.Name);
descriptor: (Ljavax/lang/model/element/Name;)Lcom/sun/tools/doclint/HtmlTag;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.sun.tools.doclint.HtmlTag.get:(Ljavax/lang/model/element/Name;)Lcom/sun/tools/doclint/HtmlTag;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
goto 3
StackMap locals: com.sun.tools.doclint.HtmlTag
StackMap stack:
2: getstatic com.sun.tools.doclint.HtmlTag.HTML:Lcom/sun/tools/doclint/HtmlTag;
StackMap locals:
StackMap stack: com.sun.tools.doclint.HtmlTag
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljavax/lang/model/element/Name;
1 4 1 tag Lcom/sun/tools/doclint/HtmlTag;
MethodParameters:
Name Flags
name
private static java.util.Map<com.sun.source.doctree.StartElementTree, java.lang.Integer> countTableColumns(com.sun.source.doctree.DocCommentTree);
descriptor: (Lcom/sun/source/doctree/DocCommentTree;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.IdentityHashMap
dup
invokespecial java.util.IdentityHashMap.<init>:()V
astore 1
start local 1 1: new jdk.internal.shellsupport.doc.JavadocFormatter$2
dup
aload 1
invokespecial jdk.internal.shellsupport.doc.JavadocFormatter$2.<init>:(Ljava/util/Map;)V
2: aload 0
aconst_null
invokevirtual jdk.internal.shellsupport.doc.JavadocFormatter$2.scan:(Lcom/sun/source/doctree/DocTree;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 dct Lcom/sun/source/doctree/DocCommentTree;
1 4 1 result Ljava/util/Map<Lcom/sun/source/doctree/StartElementTree;Ljava/lang/Integer;>;
Signature: (Lcom/sun/source/doctree/DocCommentTree;)Ljava/util/Map<Lcom/sun/source/doctree/StartElementTree;Ljava/lang/Integer;>;
MethodParameters:
Name Flags
dct
}
SourceFile: "JavadocFormatter.java"
NestMembers:
jdk.internal.shellsupport.doc.JavadocFormatter$1 jdk.internal.shellsupport.doc.JavadocFormatter$2 jdk.internal.shellsupport.doc.JavadocFormatter$FormatJavadocScanner jdk.internal.shellsupport.doc.JavadocFormatter$Sections jdk.internal.shellsupport.doc.JavadocFormatter$Sections$1 jdk.internal.shellsupport.doc.JavadocFormatter$Sections$2 jdk.internal.shellsupport.doc.JavadocFormatter$Sections$3 jdk.internal.shellsupport.doc.JavadocFormatter$Sections$4
InnerClasses:
public abstract CompilationTask = javax.tools.JavaCompiler$CompilationTask of javax.tools.JavaCompiler
public final Kind = javax.tools.JavaFileObject$Kind of javax.tools.JavaFileObject
jdk.internal.shellsupport.doc.JavadocFormatter$1
jdk.internal.shellsupport.doc.JavadocFormatter$2
private FormatJavadocScanner = jdk.internal.shellsupport.doc.JavadocFormatter$FormatJavadocScanner of jdk.internal.shellsupport.doc.JavadocFormatter
private abstract Sections = jdk.internal.shellsupport.doc.JavadocFormatter$Sections of jdk.internal.shellsupport.doc.JavadocFormatter