public class org.stringtemplate.v4.StringRenderer implements org.stringtemplate.v4.AttributeRenderer<java.lang.Object>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.stringtemplate.v4.StringRenderer
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/stringtemplate/v4/StringRenderer;
public java.lang.String toString(java.lang.Object, java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/Object;Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
checkcast java.lang.String
aload 2
aload 3
invokevirtual org.stringtemplate.v4.StringRenderer.toString:(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/stringtemplate/v4/StringRenderer;
0 1 1 value Ljava/lang/Object;
0 1 2 formatString Ljava/lang/String;
0 1 3 locale Ljava/util/Locale;
MethodParameters:
Name Flags
value
formatString
locale
public java.lang.String toString(java.lang.String, java.lang.String, java.util.Locale);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ifnonnull 1
aload 1
areturn
1: StackMap locals:
StackMap stack:
aload 2
ldc "upper"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
aload 1
aload 3
invokevirtual java.lang.String.toUpperCase:(Ljava/util/Locale;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 2
ldc "lower"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
aload 1
aload 3
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
areturn
3: StackMap locals:
StackMap stack:
aload 2
ldc "cap"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
4: aload 1
invokevirtual java.lang.String.length:()I
ifle 5
new java.lang.StringBuilder
dup
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toUpperCase:(C)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 6
StackMap locals:
StackMap stack:
5: aload 1
StackMap locals:
StackMap stack: java.lang.String
6: areturn
7: StackMap locals:
StackMap stack:
aload 2
ldc "url-encode"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
8: aload 1
ldc "UTF-8"
invokestatic java.net.URLEncoder.encode:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
9: areturn
10: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
pop
11: StackMap locals:
StackMap stack:
aload 2
ldc "xml-encode"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
12: aload 1
invokestatic org.stringtemplate.v4.StringRenderer.escapeHTML:(Ljava/lang/String;)Ljava/lang/String;
areturn
13: StackMap locals:
StackMap stack:
aload 3
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/stringtemplate/v4/StringRenderer;
0 14 1 value Ljava/lang/String;
0 14 2 formatString Ljava/lang/String;
0 14 3 locale Ljava/util/Locale;
Exception table:
from to target type
8 9 10 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
value
formatString
locale
public static java.lang.String escapeHTML(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.String.length:()I
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 3: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 29
6: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 7: iload 4
lookupswitch { // 6
9: 14
10: 14
13: 14
38: 8
60: 10
62: 12
default: 16
}
8: StackMap locals: int
StackMap stack:
aload 1
ldc "&"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: goto 28
10: StackMap locals:
StackMap stack:
aload 1
ldc "<"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: goto 28
12: StackMap locals:
StackMap stack:
aload 1
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: goto 28
14: StackMap locals:
StackMap stack:
aload 1
iload 4
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
15: goto 28
16: StackMap locals:
StackMap stack:
iload 4
bipush 32
if_icmpge 17
iconst_1
goto 18
StackMap locals:
StackMap stack:
17: iconst_0
StackMap locals:
StackMap stack: int
18: istore 5
start local 5 19: iload 4
bipush 126
if_icmple 20
iconst_1
goto 21
StackMap locals: int
StackMap stack:
20: iconst_0
StackMap locals:
StackMap stack: int
21: istore 6
start local 6 22: iload 5
ifne 23
iload 6
ifeq 27
23: StackMap locals: int
StackMap stack:
aload 1
ldc "&#"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
24: aload 1
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
25: aload 1
ldc ";"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
26: goto 28
27: StackMap locals:
StackMap stack:
aload 1
iload 4
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 6 end local 5 end local 4 28: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
29: iload 3
iload 2
if_icmplt 6
end local 3 30: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 s Ljava/lang/String;
3 31 1 buf Ljava/lang/StringBuilder;
4 31 2 len I
5 30 3 i I
7 28 4 c C
19 28 5 control Z
22 28 6 aboveASCII Z
MethodParameters:
Name Flags
s
}
Signature: Ljava/lang/Object;Lorg/stringtemplate/v4/AttributeRenderer<Ljava/lang/Object;>;
SourceFile: "StringRenderer.java"