class org.springframework.web.util.HtmlCharacterEntityReferences
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.web.util.HtmlCharacterEntityReferences
super_class: java.lang.Object
{
private static final java.lang.String PROPERTIES_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "HtmlCharacterEntityReferences.properties"
static final char REFERENCE_START;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 38
static final java.lang.String DECIMAL_REFERENCE_START;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "&#"
static final java.lang.String HEX_REFERENCE_START;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "&#x"
static final char REFERENCE_END;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 59
static final char CHAR_NULL;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 65535
private final java.lang.String[] characterToEntityReferenceMap;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, java.lang.Character> entityReferenceToCharacterMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Character;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
sipush 3000
anewarray java.lang.String
putfield org.springframework.web.util.HtmlCharacterEntityReferences.characterToEntityReferenceMap:[Ljava/lang/String;
2: aload 0
new java.util.HashMap
dup
sipush 512
invokespecial java.util.HashMap.<init>:(I)V
putfield org.springframework.web.util.HtmlCharacterEntityReferences.entityReferenceToCharacterMap:Ljava/util/Map;
3: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 4: ldc Lorg/springframework/web/util/HtmlCharacterEntityReferences;
ldc "HtmlCharacterEntityReferences.properties"
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 2
start local 2 5: aload 2
ifnonnull 9
6: new java.lang.IllegalStateException
dup
7: ldc "Cannot find reference definition file [HtmlCharacterEntityReferences.properties] as class path resource"
8: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: org.springframework.web.util.HtmlCharacterEntityReferences java.util.Properties java.io.InputStream
StackMap stack:
aload 1
aload 2
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
10: goto 14
11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
12: aload 2
invokevirtual java.io.InputStream.close:()V
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.InputStream.close:()V
15: goto 20
16: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 17: new java.lang.IllegalStateException
dup
18: new java.lang.StringBuilder
dup
ldc "Failed to parse reference definition file [HtmlCharacterEntityReferences.properties]: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 3 20: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.Properties.propertyNames:()Ljava/util/Enumeration;
astore 3
start local 3 21: goto 35
22: StackMap locals: java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 23: aload 4
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 5
start local 5 24: iload 5
sipush 1000
if_icmplt 26
iload 5
sipush 8000
if_icmplt 25
iload 5
sipush 10000
if_icmplt 26
StackMap locals: java.lang.String int
StackMap stack:
25: iconst_0
goto 27
StackMap locals:
StackMap stack:
26: iconst_1
27: StackMap locals:
StackMap stack: int
iload 5
invokedynamic get(I)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/web/util/HtmlCharacterEntityReferences.lambda$0(I)Ljava/lang/String; (6)
()Ljava/lang/String;
28: invokestatic org.springframework.util.Assert.isTrue:(ZLjava/util/function/Supplier;)V
29: iload 5
sipush 1000
if_icmpge 30
iload 5
goto 31
StackMap locals:
StackMap stack:
30: iload 5
sipush 7000
isub
StackMap locals:
StackMap stack: int
31: istore 6
start local 6 32: aload 1
aload 4
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 33: aload 0
getfield org.springframework.web.util.HtmlCharacterEntityReferences.characterToEntityReferenceMap:[Ljava/lang/String;
iload 6
new java.lang.StringBuilder
dup
bipush 38
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 59
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
34: aload 0
getfield org.springframework.web.util.HtmlCharacterEntityReferences.entityReferenceToCharacterMap:Ljava/util/Map;
aload 7
iload 5
i2c
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 end local 5 end local 4 35: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 22
36: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
4 37 1 entityReferences Ljava/util/Properties;
5 37 2 is Ljava/io/InputStream;
17 20 3 ex Ljava/io/IOException;
21 37 3 keys Ljava/util/Enumeration<*>;
23 35 4 key Ljava/lang/String;
24 35 5 referredChar I
32 35 6 index I
33 35 7 reference Ljava/lang/String;
Exception table:
from to target type
9 11 11 any
9 15 16 Class java.io.IOException
public int getSupportedReferenceCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.util.HtmlCharacterEntityReferences.entityReferenceToCharacterMap:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
public boolean isMappedToReference(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc "ISO-8859-1"
invokevirtual org.springframework.web.util.HtmlCharacterEntityReferences.isMappedToReference:(CLjava/lang/String;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
0 1 1 character C
MethodParameters:
Name Flags
character
public boolean isMappedToReference(char, java.lang.String);
descriptor: (CLjava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
aload 2
invokevirtual org.springframework.web.util.HtmlCharacterEntityReferences.convertToReference:(CLjava/lang/String;)Ljava/lang/String;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
0 2 1 character C
0 2 2 encoding Ljava/lang/String;
MethodParameters:
Name Flags
character
encoding
public java.lang.String convertToReference(char);
descriptor: (C)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc "ISO-8859-1"
invokevirtual org.springframework.web.util.HtmlCharacterEntityReferences.convertToReference:(CLjava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
0 1 1 character C
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
character
public java.lang.String convertToReference(char, java.lang.String);
descriptor: (CLjava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ldc "UTF-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 8
1: iload 1
lookupswitch { // 5
34: 4
38: 5
39: 6
60: 2
62: 3
default: 7
}
2: StackMap locals:
StackMap stack:
ldc "<"
areturn
3: StackMap locals:
StackMap stack:
ldc ">"
areturn
4: StackMap locals:
StackMap stack:
ldc """
areturn
5: StackMap locals:
StackMap stack:
ldc "&"
areturn
6: StackMap locals:
StackMap stack:
ldc "'"
areturn
7: StackMap locals:
StackMap stack:
goto 15
8: StackMap locals:
StackMap stack:
iload 1
sipush 1000
if_icmplt 9
iload 1
sipush 8000
if_icmplt 15
iload 1
sipush 10000
if_icmpge 15
9: StackMap locals:
StackMap stack:
iload 1
sipush 1000
if_icmpge 10
iload 1
goto 11
StackMap locals:
StackMap stack:
10: iload 1
sipush 7000
isub
StackMap locals:
StackMap stack: int
11: istore 3
start local 3 12: aload 0
getfield org.springframework.web.util.HtmlCharacterEntityReferences.characterToEntityReferenceMap:[Ljava/lang/String;
iload 3
aaload
astore 4
start local 4 13: aload 4
ifnull 15
14: aload 4
areturn
end local 4 end local 3 15: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
0 16 1 character C
0 16 2 encoding Ljava/lang/String;
12 15 3 index I
13 15 4 entityReference Ljava/lang/String;
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
character
encoding
public char convertToCharacter(java.lang.String);
descriptor: (Ljava/lang/String;)C
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.web.util.HtmlCharacterEntityReferences.entityReferenceToCharacterMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Character
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual java.lang.Character.charValue:()C
ireturn
3: StackMap locals: java.lang.Character
StackMap stack:
ldc 65535
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/util/HtmlCharacterEntityReferences;
0 4 1 entityReference Ljava/lang/String;
1 4 2 referredCharacter Ljava/lang/Character;
MethodParameters:
Name Flags
entityReference
private static java.lang.String lambda$0(int);
descriptor: (I)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Invalid reference to special HTML entity: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HtmlCharacterEntityReferences.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles