public abstract class io.netty.util.AbstractConstant<T extends io.netty.util.AbstractConstant<T>> implements io.netty.util.Constant<T>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.util.AbstractConstant
super_class: java.lang.Object
{
private static final java.util.concurrent.atomic.AtomicLong uniqueIdGenerator;
descriptor: Ljava/util/concurrent/atomic/AtomicLong;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int id;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long uniquifier;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicLong
dup
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
putstatic io.netty.util.AbstractConstant.uniqueIdGenerator:Ljava/util/concurrent/atomic/AtomicLong;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
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
iload 1
putfield io.netty.util.AbstractConstant.id:I
2: aload 0
aload 2
putfield io.netty.util.AbstractConstant.name:Ljava/lang/String;
3: aload 0
getstatic io.netty.util.AbstractConstant.uniqueIdGenerator:Ljava/util/concurrent/atomic/AtomicLong;
invokevirtual java.util.concurrent.atomic.AtomicLong.getAndIncrement:()J
putfield io.netty.util.AbstractConstant.uniquifier:J
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/util/AbstractConstant<TT;>;
0 5 1 id I
0 5 2 name Ljava/lang/String;
MethodParameters:
Name Flags
id
name
public final java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.AbstractConstant.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/AbstractConstant<TT;>;
public final int id();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.util.AbstractConstant.id:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/AbstractConstant<TT;>;
public final java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.util.AbstractConstant.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/AbstractConstant<TT;>;
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/AbstractConstant<TT;>;
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial java.lang.Object.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/util/AbstractConstant<TT;>;
0 1 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public final int compareTo();
descriptor: (Lio/netty/util/AbstractConstant;)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
astore 2
start local 2 3: aload 0
invokevirtual io.netty.util.AbstractConstant.hashCode:()I
aload 2
invokevirtual io.netty.util.AbstractConstant.hashCode:()I
isub
istore 3
start local 3 4: iload 3
ifeq 6
5: iload 3
ireturn
6: StackMap locals: io.netty.util.AbstractConstant int
StackMap stack:
aload 0
getfield io.netty.util.AbstractConstant.uniquifier:J
aload 2
getfield io.netty.util.AbstractConstant.uniquifier:J
lcmp
ifge 8
7: iconst_m1
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield io.netty.util.AbstractConstant.uniquifier:J
aload 2
getfield io.netty.util.AbstractConstant.uniquifier:J
lcmp
ifle 10
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
new java.lang.Error
dup
ldc "failed to compare two different constants"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/netty/util/AbstractConstant<TT;>;
0 11 1 o TT;
3 11 2 other Lio/netty/util/AbstractConstant<TT;>;
4 11 3 returnCode I
Signature: (TT;)I
MethodParameters:
Name Flags
o
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.netty.util.AbstractConstant
invokevirtual io.netty.util.AbstractConstant.compareTo:(Lio/netty/util/AbstractConstant;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Lio/netty/util/AbstractConstant<TT;>;>Ljava/lang/Object;Lio/netty/util/Constant<TT;>;
SourceFile: "AbstractConstant.java"