public class jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder extends jdk.javadoc.internal.doclets.toolkit.Content
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder
super_class: jdk.javadoc.internal.doclets.toolkit.Content
{
protected java.util.List<jdk.javadoc.internal.doclets.toolkit.Content> contents;
descriptor: Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/List<Ljdk/javadoc/internal/doclets/toolkit/Content;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.javadoc.internal.doclets.toolkit.Content.<init>:()V
1: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
public void <init>(jdk.javadoc.internal.doclets.toolkit.Content[]);
descriptor: ([Ljdk/javadoc/internal/doclets/toolkit/Content;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jdk.javadoc.internal.doclets.toolkit.Content.<init>:()V
1: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
2: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder jdk.javadoc.internal.doclets.toolkit.Content[] top int int jdk.javadoc.internal.doclets.toolkit.Content[]
StackMap stack:
3: aload 5
iload 3
aaload
astore 2
start local 2 4: aload 0
aload 2
invokevirtual jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.add:(Ljdk/javadoc/internal/doclets/toolkit/Content;)V
end local 2 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 3
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
0 8 1 contents [Ljdk/javadoc/internal/doclets/toolkit/Content;
4 5 2 c Ljdk/javadoc/internal/doclets/toolkit/Content;
MethodParameters:
Name Flags
contents
public void add(jdk.javadoc.internal.doclets.toolkit.Content);
descriptor: (Ljdk/javadoc/internal/doclets/toolkit/Content;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.nullCheck:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.ensureMutableContents:()V
2: aload 1
instanceof jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder
ifeq 5
3: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
aload 1
checkcast jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
4: goto 6
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
0 7 1 content Ljdk/javadoc/internal/doclets/toolkit/Content;
MethodParameters:
Name Flags
content
public void add(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.CharSequence.length:()I
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.ensureMutableContents:()V
3: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
aconst_null
goto 5
StackMap locals:
StackMap stack:
4: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast jdk.javadoc.internal.doclets.toolkit.Content
StackMap locals:
StackMap stack: jdk.javadoc.internal.doclets.toolkit.Content
5: astore 2
start local 2 6: aload 2
ifnull 9
aload 2
instanceof jdk.javadoc.internal.doclets.formats.html.markup.StringContent
ifeq 9
7: aload 2
checkcast jdk.javadoc.internal.doclets.formats.html.markup.StringContent
astore 3
start local 3 8: goto 11
end local 3 9: StackMap locals: jdk.javadoc.internal.doclets.toolkit.Content
StackMap stack:
aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
new jdk.javadoc.internal.doclets.formats.html.markup.StringContent
dup
invokespecial jdk.javadoc.internal.doclets.formats.html.markup.StringContent.<init>:()V
dup
astore 3
start local 3 10: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: StackMap locals: jdk.javadoc.internal.doclets.formats.html.markup.StringContent
StackMap stack:
aload 3
aload 1
invokevirtual jdk.javadoc.internal.doclets.formats.html.markup.StringContent.add:(Ljava/lang/CharSequence;)V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
0 13 1 text Ljava/lang/CharSequence;
6 13 2 c Ljdk/javadoc/internal/doclets/toolkit/Content;
8 9 3 sc Ljdk/javadoc/internal/doclets/formats/html/markup/StringContent;
10 13 3 sc Ljdk/javadoc/internal/doclets/formats/html/markup/StringContent;
MethodParameters:
Name Flags
text
public boolean write(java.io.Writer, boolean);
descriptor: (Ljava/io/Writer;Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder java.io.Writer int top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.javadoc.internal.doclets.toolkit.Content
astore 3
start local 3 2: aload 3
aload 1
iload 2
invokevirtual jdk.javadoc.internal.doclets.toolkit.Content.write:(Ljava/io/Writer;Z)Z
istore 2
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
0 5 1 writer Ljava/io/Writer;
0 5 2 atNewline Z
2 3 3 content Ljdk/javadoc/internal/doclets/toolkit/Content;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
writer
atNewline
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.javadoc.internal.doclets.toolkit.Content
astore 1
start local 1 2: aload 1
invokevirtual jdk.javadoc.internal.doclets.toolkit.Content.isEmpty:()Z
ifne 4
3: iconst_0
ireturn
end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
2 4 1 content Ljdk/javadoc/internal/doclets/toolkit/Content;
public int charCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.javadoc.internal.doclets.toolkit.Content
astore 2
start local 2 3: iload 1
aload 2
invokevirtual jdk.javadoc.internal.doclets.toolkit.Content.charCount:()I
iadd
istore 1
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
1 6 1 n I
3 4 2 c Ljdk/javadoc/internal/doclets/toolkit/Content;
private void ensureMutableContents();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 2
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.javadoc.internal.doclets.formats.html.markup.ContentBuilder.contents:Ljava/util/List;
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/javadoc/internal/doclets/formats/html/markup/ContentBuilder;
}
SourceFile: "ContentBuilder.java"