public class javax.ws.rs.core.GenericEntity<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.ws.rs.core.GenericEntity
super_class: java.lang.Object
{
private final java.lang.Class<?> rawType;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<*>;
private final java.lang.reflect.Type type;
descriptor: Ljava/lang/reflect/Type;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final T entity;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TT;
protected void <init>();
descriptor: (Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "The entity must not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.ws.rs.core.GenericEntity java.lang.Object
StackMap stack:
aload 0
aload 1
putfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
4: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Ljavax/ws/rs/core/GenericEntity;
invokestatic javax.ws.rs.core.GenericType.getTypeArgument:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Type;
putfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
5: aload 0
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
putfield javax.ws.rs.core.GenericEntity.rawType:Ljava/lang/Class;
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
0 7 1 entity TT;
Signature: (TT;)V
MethodParameters:
Name Flags
entity final
public void <init>(T, java.lang.reflect.Type);
descriptor: (Ljava/lang/Object;Ljava/lang/reflect/Type;)V
flags: (0x0001) ACC_PUBLIC
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 1
ifnull 2
aload 2
ifnonnull 3
2: StackMap locals: javax.ws.rs.core.GenericEntity java.lang.Object java.lang.reflect.Type
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Arguments must not be null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
4: aload 0
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
putfield javax.ws.rs.core.GenericEntity.rawType:Ljava/lang/Class;
5: aload 0
aload 0
getfield javax.ws.rs.core.GenericEntity.rawType:Ljava/lang/Class;
aload 2
invokevirtual javax.ws.rs.core.GenericEntity.checkTypeCompatibility:(Ljava/lang/Class;Ljava/lang/reflect/Type;)V
6: aload 0
aload 2
putfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
0 8 1 entity TT;
0 8 2 genericType Ljava/lang/reflect/Type;
Signature: (TT;Ljava/lang/reflect/Type;)V
MethodParameters:
Name Flags
entity final
genericType final
private void checkTypeCompatibility(java.lang.Class<?>, java.lang.reflect.Type);
descriptor: (Ljava/lang/Class;Ljava/lang/reflect/Type;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof java.lang.Class
ifeq 4
1: aload 2
checkcast java.lang.Class
astore 3
start local 3 2: aload 3
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 14
3: return
end local 3 4: StackMap locals:
StackMap stack:
aload 2
instanceof java.lang.reflect.ParameterizedType
ifeq 9
5: aload 2
checkcast java.lang.reflect.ParameterizedType
astore 3
start local 3 6: aload 3
invokeinterface java.lang.reflect.ParameterizedType.getRawType:()Ljava/lang/reflect/Type;
astore 4
start local 4 7: aload 0
aload 1
aload 4
invokevirtual javax.ws.rs.core.GenericEntity.checkTypeCompatibility:(Ljava/lang/Class;Ljava/lang/reflect/Type;)V
8: return
end local 4 end local 3 9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.Class.isArray:()Z
ifeq 14
aload 2
instanceof java.lang.reflect.GenericArrayType
ifeq 14
10: aload 2
checkcast java.lang.reflect.GenericArrayType
astore 3
start local 3 11: aload 3
invokeinterface java.lang.reflect.GenericArrayType.getGenericComponentType:()Ljava/lang/reflect/Type;
astore 4
start local 4 12: aload 0
aload 1
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
aload 4
invokevirtual javax.ws.rs.core.GenericEntity.checkTypeCompatibility:(Ljava/lang/Class;Ljava/lang/reflect/Type;)V
13: return
end local 4 end local 3 14: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "The type is incompatible with the class of the entity."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
0 15 1 c Ljava/lang/Class<*>;
0 15 2 t Ljava/lang/reflect/Type;
2 4 3 ct Ljava/lang/Class<*>;
6 9 3 pt Ljava/lang/reflect/ParameterizedType;
7 9 4 rt Ljava/lang/reflect/Type;
11 14 3 at Ljava/lang/reflect/GenericArrayType;
12 14 4 rt Ljava/lang/reflect/Type;
Signature: (Ljava/lang/Class<*>;Ljava/lang/reflect/Type;)V
MethodParameters:
Name Flags
c final
t final
public final java.lang.Class<?> getRawType();
descriptor: ()Ljava/lang/Class;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.GenericEntity.rawType:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
Signature: ()Ljava/lang/Class<*>;
public final java.lang.reflect.Type getType();
descriptor: ()Ljava/lang/reflect/Type;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
public final T getEntity();
descriptor: ()Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
Signature: ()TT;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 2
start local 2 3: iload 2
ifne 7
aload 1
instanceof javax.ws.rs.core.GenericEntity
ifeq 7
4: aload 1
checkcast javax.ws.rs.core.GenericEntity
astore 3
start local 3 5: aload 0
getfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
aload 3
getfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
aload 0
getfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
aload 3
getfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 6
iconst_1
ireturn
StackMap locals: int javax.ws.rs.core.GenericEntity
StackMap stack:
6: iconst_0
ireturn
end local 3 7: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
0 8 1 obj Ljava/lang/Object;
3 8 2 result Z
5 7 3 that Ljavax/ws/rs/core/GenericEntity<*>;
MethodParameters:
Name Flags
obj
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
invokevirtual java.lang.Object.hashCode:()I
aload 0
getfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
invokevirtual java.lang.Object.hashCode:()I
bipush 37
imul
iadd
iconst_5
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/GenericEntity<TT;>;
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
ldc "GenericEntity{"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.ws.rs.core.GenericEntity.entity:Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ", "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.ws.rs.core.GenericEntity.type:Ljava/lang/reflect/Type;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "}"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)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 Ljavax/ws/rs/core/GenericEntity<TT;>;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "GenericEntity.java"