public final class com.ctc.wstx.util.TextAccumulator
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.ctc.wstx.util.TextAccumulator
super_class: java.lang.Object
{
private java.lang.String mText;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.StringBuilder mBuilder;
descriptor: Ljava/lang/StringBuilder;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
2: aload 0
aconst_null
putfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/ctc/wstx/util/TextAccumulator;
public boolean hasText();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
ifnonnull 1
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
ifnonnull 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/ctc/wstx/util/TextAccumulator;
public void addText(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iload 2
ifle 10
2: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
ifnull 6
3: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iload 2
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
putfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
4: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 0
aconst_null
putfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
6: StackMap locals: int
StackMap stack:
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
ifnull 9
7: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/ctc/wstx/util/TextAccumulator;
0 11 1 text Ljava/lang/String;
1 11 2 len I
MethodParameters:
Name Flags
text
public void addText(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
iload 2
isub
istore 4
start local 4 1: iload 4
ifle 10
2: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
ifnull 7
3: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
iload 4
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
putfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
4: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 0
aconst_null
putfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
6: goto 9
StackMap locals: int
StackMap stack:
7: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
ifnonnull 9
8: aload 0
new java.lang.StringBuilder
dup
iload 4
invokespecial java.lang.StringBuilder.<init>:(I)V
putfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
9: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
aload 1
iload 2
iload 3
iload 2
isub
invokevirtual java.lang.StringBuilder.append:([CII)Ljava/lang/StringBuilder;
pop
10: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/ctc/wstx/util/TextAccumulator;
0 11 1 buf [C
0 11 2 start I
0 11 3 end I
1 11 4 len I
MethodParameters:
Name Flags
buf
start
end
public java.lang.String getAndClear();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
ifnull 4
1: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
astore 1
start local 1 2: aload 0
aconst_null
putfield com.ctc.wstx.util.TextAccumulator.mText:Ljava/lang/String;
3: aload 1
areturn
end local 1 4: StackMap locals:
StackMap stack:
aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
ifnull 8
5: aload 0
getfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 6: aload 0
aconst_null
putfield com.ctc.wstx.util.TextAccumulator.mBuilder:Ljava/lang/StringBuilder;
7: aload 1
areturn
end local 1 8: StackMap locals:
StackMap stack:
ldc ""
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/ctc/wstx/util/TextAccumulator;
2 4 1 result Ljava/lang/String;
6 8 1 result Ljava/lang/String;
}
SourceFile: "TextAccumulator.java"