public abstract class io.undertow.util.AbstractAttachable implements io.undertow.util.Attachable
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.undertow.util.AbstractAttachable
super_class: java.lang.Object
{
private java.util.Map<io.undertow.util.AttachmentKey<?>, java.lang.Object> attachments;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Lio/undertow/util/AttachmentKey<*>;Ljava/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 Lio/undertow/util/AbstractAttachable;
public <T> T getAttachment(io.undertow.util.AttachmentKey<T>);
descriptor: (Lio/undertow/util/AttachmentKey;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
ifnonnull 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/util/AbstractAttachable;
0 3 1 key Lio/undertow/util/AttachmentKey<TT;>;
Signature: <T:Ljava/lang/Object;>(Lio/undertow/util/AttachmentKey<TT;>;)TT;
MethodParameters:
Name Flags
key final
public <T> java.util.List<T> getAttachmentList(io.undertow.util.AttachmentKey<? extends java.util.List<T>>);
descriptor: (Lio/undertow/util/AttachmentKey;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
ifnonnull 2
1: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 2
start local 2 3: aload 2
ifnonnull 5
4: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
5: StackMap locals: java.util.List
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/undertow/util/AbstractAttachable;
0 6 1 key Lio/undertow/util/AttachmentKey<+Ljava/util/List<TT;>;>;
3 6 2 list Ljava/util/List<TT;>;
Signature: <T:Ljava/lang/Object;>(Lio/undertow/util/AttachmentKey<+Ljava/util/List<TT;>;>;)Ljava/util/List<TT;>;
MethodParameters:
Name Flags
key
public <T> T putAttachment(io.undertow.util.AttachmentKey<T>, );
descriptor: (Lio/undertow/util/AttachmentKey;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
ldc "key"
invokeinterface io.undertow.UndertowMessages.argumentCannotBeNull:(Ljava/lang/String;)Ljava/lang/IllegalArgumentException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
ifnonnull 4
3: aload 0
aload 0
invokevirtual io.undertow.util.AbstractAttachable.createAttachmentMap:()Ljava/util/Map;
putfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
4: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/undertow/util/AbstractAttachable;
0 5 1 key Lio/undertow/util/AttachmentKey<TT;>;
0 5 2 value TT;
Signature: <T:Ljava/lang/Object;>(Lio/undertow/util/AttachmentKey<TT;>;TT;)TT;
MethodParameters:
Name Flags
key final
value final
protected java.util.Map<io.undertow.util.AttachmentKey<?>, java.lang.Object> createAttachmentMap();
descriptor: ()Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.IdentityHashMap
dup
iconst_5
invokespecial java.util.IdentityHashMap.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/util/AbstractAttachable;
Signature: ()Ljava/util/Map<Lio/undertow/util/AttachmentKey<*>;Ljava/lang/Object;>;
public <T> T removeAttachment(io.undertow.util.AttachmentKey<T>);
descriptor: (Lio/undertow/util/AttachmentKey;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
ifnonnull 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/util/AbstractAttachable;
0 3 1 key Lio/undertow/util/AttachmentKey<TT;>;
Signature: <T:Ljava/lang/Object;>(Lio/undertow/util/AttachmentKey<TT;>;)TT;
MethodParameters:
Name Flags
key final
public <T> void addToAttachmentList(io.undertow.util.AttachmentKey<io.undertow.util.AttachmentList<T>>, );
descriptor: (Lio/undertow/util/AttachmentKey;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 11
1: aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
ifnonnull 3
2: aload 0
aload 0
invokevirtual io.undertow.util.AbstractAttachable.createAttachmentMap:()Ljava/util/Map;
putfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
3: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.util.AbstractAttachable.attachments:Ljava/util/Map;
astore 3
start local 3 4: aload 3
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.undertow.util.AttachmentList
astore 4
start local 4 5: aload 4
ifnonnull 10
6: new io.undertow.util.AttachmentList
dup
aload 1
checkcast io.undertow.util.ListAttachmentKey
invokevirtual io.undertow.util.ListAttachmentKey.getValueClass:()Ljava/lang/Class;
invokespecial io.undertow.util.AttachmentList.<init>:(Ljava/lang/Class;)V
astore 5
start local 5 7: aload 3
aload 1
aload 5
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: aload 5
aload 2
invokevirtual io.undertow.util.AttachmentList.add:(Ljava/lang/Object;)Z
pop
end local 5 9: goto 11
10: StackMap locals: java.util.Map io.undertow.util.AttachmentList
StackMap stack:
aload 4
aload 2
invokevirtual io.undertow.util.AttachmentList.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 3 11: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/undertow/util/AbstractAttachable;
0 12 1 key Lio/undertow/util/AttachmentKey<Lio/undertow/util/AttachmentList<TT;>;>;
0 12 2 value TT;
4 11 3 attachments Ljava/util/Map<Lio/undertow/util/AttachmentKey<*>;Ljava/lang/Object;>;
5 11 4 list Lio/undertow/util/AttachmentList<TT;>;
7 9 5 newList Lio/undertow/util/AttachmentList<TT;>;
Signature: <T:Ljava/lang/Object;>(Lio/undertow/util/AttachmentKey<Lio/undertow/util/AttachmentList<TT;>;>;TT;)V
MethodParameters:
Name Flags
key final
value final
}
SourceFile: "AbstractAttachable.java"