public abstract class ch.qos.logback.core.pattern.FormattingConverter<E> extends ch.qos.logback.core.pattern.Converter<E>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: ch.qos.logback.core.pattern.FormattingConverter
super_class: ch.qos.logback.core.pattern.Converter
{
static final int INITIAL_BUF_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 256
static final int MAX_CAPACITY;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1024
ch.qos.logback.core.pattern.FormatInfo formattingInfo;
descriptor: Lch/qos/logback/core/pattern/FormatInfo;
flags: (0x0000)
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial ch.qos.logback.core.pattern.Converter.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/pattern/FormattingConverter<TE;>;
public final ch.qos.logback.core.pattern.FormatInfo getFormattingInfo();
descriptor: ()Lch/qos/logback/core/pattern/FormatInfo;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lch/qos/logback/core/pattern/FormattingConverter<TE;>;
public final void setFormattingInfo(ch.qos.logback.core.pattern.FormatInfo);
descriptor: (Lch/qos/logback/core/pattern/FormatInfo;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
ifnull 2
1: new java.lang.IllegalStateException
dup
ldc "FormattingInfo has been already set"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lch/qos/logback/core/pattern/FormattingConverter<TE;>;
0 4 1 formattingInfo Lch/qos/logback/core/pattern/FormatInfo;
MethodParameters:
Name Flags
formattingInfo
public final void write(java.lang.StringBuilder, );
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokevirtual ch.qos.logback.core.pattern.FormattingConverter.convert:(Ljava/lang/Object;)Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
ifnonnull 4
2: aload 1
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: return
4: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
invokevirtual ch.qos.logback.core.pattern.FormatInfo.getMin:()I
istore 4
start local 4 5: aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
invokevirtual ch.qos.logback.core.pattern.FormatInfo.getMax:()I
istore 5
start local 5 6: aload 3
ifnonnull 10
7: iload 4
ifle 9
8: aload 1
iload 4
invokestatic ch.qos.logback.core.pattern.SpacePadder.spacePad:(Ljava/lang/StringBuilder;I)V
9: StackMap locals: int int
StackMap stack:
return
10: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.String.length:()I
istore 6
start local 6 11: iload 6
iload 5
if_icmple 17
12: aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
invokevirtual ch.qos.logback.core.pattern.FormatInfo.isLeftTruncate:()Z
ifeq 15
13: aload 1
aload 3
iload 6
iload 5
isub
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
14: goto 24
15: StackMap locals: int
StackMap stack:
aload 1
aload 3
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: goto 24
StackMap locals:
StackMap stack:
17: iload 6
iload 4
if_icmpge 23
18: aload 0
getfield ch.qos.logback.core.pattern.FormattingConverter.formattingInfo:Lch/qos/logback/core/pattern/FormatInfo;
invokevirtual ch.qos.logback.core.pattern.FormatInfo.isLeftPad:()Z
ifeq 21
19: aload 1
aload 3
iload 4
invokestatic ch.qos.logback.core.pattern.SpacePadder.leftPad:(Ljava/lang/StringBuilder;Ljava/lang/String;I)V
20: goto 24
21: StackMap locals:
StackMap stack:
aload 1
aload 3
iload 4
invokestatic ch.qos.logback.core.pattern.SpacePadder.rightPad:(Ljava/lang/StringBuilder;Ljava/lang/String;I)V
22: goto 24
23: StackMap locals:
StackMap stack:
aload 1
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
24: StackMap locals:
StackMap stack:
return
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 25 0 this Lch/qos/logback/core/pattern/FormattingConverter<TE;>;
0 25 1 buf Ljava/lang/StringBuilder;
0 25 2 event TE;
1 25 3 s Ljava/lang/String;
5 25 4 min I
6 25 5 max I
11 25 6 len I
Signature: (Ljava/lang/StringBuilder;TE;)V
MethodParameters:
Name Flags
buf
event
}
Signature: <E:Ljava/lang/Object;>Lch/qos/logback/core/pattern/Converter<TE;>;
SourceFile: "FormattingConverter.java"