public class org.stringtemplate.v4.AutoIndentWriter implements org.stringtemplate.v4.STWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.stringtemplate.v4.AutoIndentWriter
super_class: java.lang.Object
{
public java.util.List<java.lang.String> indents;
descriptor: Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Signature: Ljava/util/List<Ljava/lang/String;>;
public int[] anchors;
descriptor: [I
flags: (0x0001) ACC_PUBLIC
public int anchors_sp;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public java.lang.String newline;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public java.io.Writer out;
descriptor: Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
public boolean atStartOfLine;
descriptor: Z
flags: (0x0001) ACC_PUBLIC
public int charPosition;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public int charIndex;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public int lineWidth;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public void <init>(java.io.Writer, java.lang.String);
descriptor: (Ljava/io/Writer;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.stringtemplate.v4.AutoIndentWriter.indents:Ljava/util/List;
2: aload 0
bipush 10
newarray 10
putfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
3: aload 0
iconst_m1
putfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
4: aload 0
aconst_null
putfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
5: aload 0
iconst_1
putfield org.stringtemplate.v4.AutoIndentWriter.atStartOfLine:Z
6: aload 0
iconst_0
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
7: aload 0
iconst_0
putfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
8: aload 0
iconst_m1
putfield org.stringtemplate.v4.AutoIndentWriter.lineWidth:I
9: aload 0
aload 1
putfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
10: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.indents:Ljava/util/List;
aconst_null
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: aload 0
aload 2
putfield org.stringtemplate.v4.AutoIndentWriter.newline:Ljava/lang/String;
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 13 1 out Ljava/io/Writer;
0 13 2 newline Ljava/lang/String;
MethodParameters:
Name Flags
out
newline
public void <init>(java.io.Writer);
descriptor: (Ljava/io/Writer;)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 "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokespecial org.stringtemplate.v4.AutoIndentWriter.<init>:(Ljava/io/Writer;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 2 1 out Ljava/io/Writer;
MethodParameters:
Name Flags
out
public void setLineWidth(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.stringtemplate.v4.AutoIndentWriter.lineWidth:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 2 1 lineWidth I
MethodParameters:
Name Flags
lineWidth
public void pushIndentation(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.indents:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 2 1 indent Ljava/lang/String;
MethodParameters:
Name Flags
indent
public java.lang.String popIndentation();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.indents:Ljava/util/List;
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.indents:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
public void pushAnchorPoint();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
iconst_1
iadd
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
arraylength
if_icmplt 4
1: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
arraylength
iconst_2
imul
newarray 10
astore 1
start local 1 2: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
iconst_0
aload 1
iconst_0
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
arraylength
iconst_1
isub
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 0
aload 1
putfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
end local 1 4: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
iconst_1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
5: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
iastore
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
2 4 1 a [I
public void popAnchorPoint();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
iconst_1
isub
putfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
public int index();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
public int write(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.newline:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
istore 3
start local 3 2: aload 1
invokevirtual java.lang.String.length:()I
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 23
5: StackMap locals: org.stringtemplate.v4.AutoIndentWriter java.lang.String int int int int
StackMap stack:
aload 1
iload 5
invokevirtual java.lang.String.charAt:(I)C
istore 6
start local 6 6: iload 6
bipush 13
if_icmpne 7
goto 22
7: StackMap locals: int
StackMap stack:
iload 6
bipush 10
if_icmpne 15
8: aload 0
iconst_1
putfield org.stringtemplate.v4.AutoIndentWriter.atStartOfLine:Z
9: aload 0
iload 3
ineg
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
10: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.newline:Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
11: iload 2
iload 3
iadd
istore 2
12: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
iload 3
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
13: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
iload 2
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
14: goto 22
15: StackMap locals:
StackMap stack:
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.atStartOfLine:Z
ifeq 18
16: iload 2
aload 0
invokevirtual org.stringtemplate.v4.AutoIndentWriter.indent:()I
iadd
istore 2
17: aload 0
iconst_0
putfield org.stringtemplate.v4.AutoIndentWriter.atStartOfLine:Z
18: StackMap locals:
StackMap stack:
iinc 2 1
19: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
iload 6
invokevirtual java.io.Writer.write:(I)V
20: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
iconst_1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
21: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
iconst_1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
end local 6 22: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
23: iload 5
iload 4
if_icmplt 5
end local 5 24: iload 2
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 25 1 str Ljava/lang/String;
1 25 2 n I
2 25 3 nll I
3 25 4 sl I
4 24 5 i I
6 22 6 c C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
public int writeSeparator(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.stringtemplate.v4.AutoIndentWriter.write:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 1 1 str Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
public int write(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual org.stringtemplate.v4.AutoIndentWriter.writeWrap:(Ljava/lang/String;)I
istore 3
start local 3 1: iload 3
aload 0
aload 1
invokevirtual org.stringtemplate.v4.AutoIndentWriter.write:(Ljava/lang/String;)I
iadd
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 2 1 str Ljava/lang/String;
0 2 2 wrap Ljava/lang/String;
1 2 3 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
wrap
public int writeWrap(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.lineWidth:I
iconst_m1
if_icmpeq 21
aload 1
ifnull 21
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.atStartOfLine:Z
ifne 21
2: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.lineWidth:I
if_icmplt 21
3: iconst_0
istore 3
start local 3 4: goto 20
5: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 6: iload 4
bipush 13
if_icmpne 8
7: goto 19
8: StackMap locals: int
StackMap stack:
iload 4
bipush 10
if_icmpne 15
9: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.newline:Ljava/lang/String;
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
10: iload 2
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.newline:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iadd
istore 2
11: aload 0
iconst_0
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
12: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.newline:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
13: iload 2
aload 0
invokevirtual org.stringtemplate.v4.AutoIndentWriter.indent:()I
iadd
istore 2
14: goto 19
15: StackMap locals:
StackMap stack:
iinc 2 1
16: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
iload 4
invokevirtual java.io.Writer.write:(I)V
17: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
iconst_1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
18: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
iconst_1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
end local 4 19: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
20: iload 3
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 5
end local 3 21: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
0 22 1 wrap Ljava/lang/String;
1 22 2 n I
4 21 3 i I
6 19 4 c C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
wrap
public int indent();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.indents:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.stringtemplate.v4.AutoIndentWriter int top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 3: aload 2
ifnull 6
4: iload 1
aload 2
invokevirtual java.lang.String.length:()I
iadd
istore 1
5: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
aload 2
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: iload 1
istore 2
start local 2 8: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
iflt 15
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
iaload
iload 2
if_icmple 15
9: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors:[I
aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.anchors_sp:I
iaload
iload 2
isub
istore 3
start local 3 10: iconst_1
istore 4
start local 4 11: goto 13
StackMap locals: org.stringtemplate.v4.AutoIndentWriter int int int int
StackMap stack:
12: aload 0
getfield org.stringtemplate.v4.AutoIndentWriter.out:Ljava/io/Writer;
bipush 32
invokevirtual java.io.Writer.write:(I)V
iinc 4 1
StackMap locals:
StackMap stack:
13: iload 4
iload 3
if_icmple 12
end local 4 14: iload 1
iload 3
iadd
istore 1
end local 3 15: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
iload 1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charPosition:I
16: aload 0
dup
getfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
iload 1
iadd
putfield org.stringtemplate.v4.AutoIndentWriter.charIndex:I
17: iload 1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/stringtemplate/v4/AutoIndentWriter;
1 18 1 n I
3 6 2 ind Ljava/lang/String;
8 18 2 indentWidth I
10 15 3 remainder I
11 14 4 i I
Exceptions:
throws java.io.IOException
}
SourceFile: "AutoIndentWriter.java"