public class io.netty.util.DomainNameMapping<V> implements io.netty.util.Mapping<java.lang.String, V>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.util.DomainNameMapping
super_class: java.lang.Object
{
final V defaultValue;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
Signature: TV;
private final java.util.Map<java.lang.String, V> map;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;TV;>;
private final java.util.Map<java.lang.String, V> unmodifiableMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;TV;>;
public void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_4
aload 1
invokespecial io.netty.util.DomainNameMapping.<init>:(ILjava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/DomainNameMapping<TV;>;
0 2 1 defaultValue TV;
Signature: (TV;)V
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
defaultValue
public void <init>(int, );
descriptor: (ILjava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new java.util.LinkedHashMap
dup
iload 1
invokespecial java.util.LinkedHashMap.<init>:(I)V
aload 2
invokespecial io.netty.util.DomainNameMapping.<init>:(Ljava/util/Map;Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/DomainNameMapping<TV;>;
0 2 1 initialCapacity I
0 2 2 defaultValue TV;
Signature: (ITV;)V
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
initialCapacity
defaultValue
void <init>(java.util.Map<java.lang.String, V>, );
descriptor: (Ljava/util/Map;Ljava/lang/Object;)V
flags: (0x0000)
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
aload 2
ldc "defaultValue"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
putfield io.netty.util.DomainNameMapping.defaultValue:Ljava/lang/Object;
2: aload 0
aload 1
putfield io.netty.util.DomainNameMapping.map:Ljava/util/Map;
3: aload 0
aload 1
ifnull 4
aload 1
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
goto 5
4: StackMap locals: io.netty.util.DomainNameMapping java.util.Map java.lang.Object
StackMap stack: io.netty.util.DomainNameMapping
aconst_null
5: StackMap locals: io.netty.util.DomainNameMapping java.util.Map java.lang.Object
StackMap stack: io.netty.util.DomainNameMapping java.util.Map
putfield io.netty.util.DomainNameMapping.unmodifiableMap:Ljava/util/Map;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/util/DomainNameMapping<TV;>;
0 7 1 map Ljava/util/Map<Ljava/lang/String;TV;>;
0 7 2 defaultValue TV;
Signature: (Ljava/util/Map<Ljava/lang/String;TV;>;TV;)V
MethodParameters:
Name Flags
map
defaultValue
public io.netty.util.DomainNameMapping<V> add(java.lang.String, V);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)Lio/netty/util/DomainNameMapping;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.netty.util.DomainNameMapping.map:Ljava/util/Map;
aload 1
ldc "hostname"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic io.netty.util.DomainNameMapping.normalizeHostname:(Ljava/lang/String;)Ljava/lang/String;
aload 2
ldc "output"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/util/DomainNameMapping<TV;>;
0 2 1 hostname Ljava/lang/String;
0 2 2 output TV;
Signature: (Ljava/lang/String;TV;)Lio/netty/util/DomainNameMapping<TV;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
hostname
output
static boolean matches(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "*."
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 5
1: aload 0
iconst_2
aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.regionMatches:(ILjava/lang/String;II)Z
ifne 4
2: aload 1
aload 0
aload 0
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokestatic io.netty.util.internal.StringUtil.commonSuffixOfLength:(Ljava/lang/String;Ljava/lang/String;I)Z
ifne 4
3: iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 template Ljava/lang/String;
0 6 1 hostName Ljava/lang/String;
MethodParameters:
Name Flags
template
hostName
static java.lang.String normalizeHostname(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic io.netty.util.DomainNameMapping.needsNormalization:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_1
invokestatic java.net.IDN.toASCII:(Ljava/lang/String;I)Ljava/lang/String;
astore 0
2: StackMap locals:
StackMap stack:
aload 0
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 hostname Ljava/lang/String;
MethodParameters:
Name Flags
hostname
private static boolean needsNormalization(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 4: iload 3
bipush 127
if_icmple 6
5: iconst_1
ireturn
end local 3 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
iload 1
if_icmplt 3
end local 2 8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 hostname Ljava/lang/String;
1 9 1 length I
2 8 2 i I
4 6 3 c I
MethodParameters:
Name Flags
hostname
public V map(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnull 7
1: aload 1
invokestatic io.netty.util.DomainNameMapping.normalizeHostname:(Ljava/lang/String;)Ljava/lang/String;
astore 1
2: aload 0
getfield io.netty.util.DomainNameMapping.map:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: io.netty.util.DomainNameMapping java.lang.String top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 4: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 1
invokestatic io.netty.util.DomainNameMapping.matches:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 6
5: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
areturn
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
7: StackMap locals: io.netty.util.DomainNameMapping java.lang.String
StackMap stack:
aload 0
getfield io.netty.util.DomainNameMapping.defaultValue:Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/util/DomainNameMapping<TV;>;
0 8 1 hostname Ljava/lang/String;
4 6 2 entry Ljava/util/Map$Entry<Ljava/lang/String;TV;>;
Signature: (Ljava/lang/String;)TV;
MethodParameters:
Name Flags
hostname
public java.util.Map<java.lang.String, V> asMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.DomainNameMapping.unmodifiableMap:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/DomainNameMapping<TV;>;
Signature: ()Ljava/util/Map<Ljava/lang/String;TV;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "(default: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.netty.util.DomainNameMapping.defaultValue:Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", map: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.netty.util.DomainNameMapping.map:Ljava/util/Map;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/DomainNameMapping<TV;>;
public java.lang.Object map(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.String
invokevirtual io.netty.util.DomainNameMapping.map:(Ljava/lang/String;)Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <V:Ljava/lang/Object;>Ljava/lang/Object;Lio/netty/util/Mapping<Ljava/lang/String;TV;>;
SourceFile: "DomainNameMapping.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map