public final class org.jboss.resteasy.core.request.QualityValue extends java.lang.Number implements java.lang.Comparable<org.jboss.resteasy.core.request.QualityValue>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jboss.resteasy.core.request.QualityValue
super_class: java.lang.Number
{
public static final org.jboss.resteasy.core.request.QualityValue NOT_ACCEPTABLE;
descriptor: Lorg/jboss/resteasy/core/request/QualityValue;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.jboss.resteasy.core.request.QualityValue LOWEST;
descriptor: Lorg/jboss/resteasy/core/request/QualityValue;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.jboss.resteasy.core.request.QualityValue HIGHEST;
descriptor: Lorg/jboss/resteasy/core/request/QualityValue;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final org.jboss.resteasy.core.request.QualityValue DEFAULT;
descriptor: Lorg/jboss/resteasy/core/request/QualityValue;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final java.lang.String MALFORMED_VALUE_MESSAGE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final int WEIGHT;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: ldc Lorg/jboss/resteasy/core/request/QualityValue;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jboss.resteasy.core.request.QualityValue.$assertionsDisabled:Z
3: new org.jboss.resteasy.core.request.QualityValue
dup
iconst_0
invokespecial org.jboss.resteasy.core.request.QualityValue.<init>:(I)V
putstatic org.jboss.resteasy.core.request.QualityValue.NOT_ACCEPTABLE:Lorg/jboss/resteasy/core/request/QualityValue;
4: new org.jboss.resteasy.core.request.QualityValue
dup
iconst_1
invokespecial org.jboss.resteasy.core.request.QualityValue.<init>:(I)V
putstatic org.jboss.resteasy.core.request.QualityValue.LOWEST:Lorg/jboss/resteasy/core/request/QualityValue;
5: new org.jboss.resteasy.core.request.QualityValue
dup
sipush 1000
invokespecial org.jboss.resteasy.core.request.QualityValue.<init>:(I)V
putstatic org.jboss.resteasy.core.request.QualityValue.HIGHEST:Lorg/jboss/resteasy/core/request/QualityValue;
6: getstatic org.jboss.resteasy.core.request.QualityValue.HIGHEST:Lorg/jboss/resteasy/core/request/QualityValue;
putstatic org.jboss.resteasy.core.request.QualityValue.DEFAULT:Lorg/jboss/resteasy/core/request/QualityValue;
7: getstatic org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.MESSAGES:Lorg/jboss/resteasy/resteasy_jaxrs/i18n/Messages;
invokeinterface org.jboss.resteasy.resteasy_jaxrs.i18n.Messages.malformedQualityValue:()Ljava/lang/String;
putstatic org.jboss.resteasy.core.request.QualityValue.MALFORMED_VALUE_MESSAGE:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Number.<init>:()V
1: getstatic org.jboss.resteasy.core.request.QualityValue.$assertionsDisabled:Z
ifne 2
iload 1
ifge 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.jboss.resteasy.core.request.QualityValue int
StackMap stack:
getstatic org.jboss.resteasy.core.request.QualityValue.$assertionsDisabled:Z
ifne 3
iload 1
sipush 1000
if_icmple 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/core/request/QualityValue;
0 5 1 weight I
MethodParameters:
Name Flags
weight
public static org.jboss.resteasy.core.request.QualityValue valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/core/request/QualityValue;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: getstatic org.jboss.resteasy.core.request.QualityValue.DEFAULT:Lorg/jboss/resteasy/core/request/QualityValue;
areturn
2: StackMap locals:
StackMap stack:
new org.jboss.resteasy.core.request.QualityValue
dup
aload 0
invokestatic org.jboss.resteasy.core.request.QualityValue.parseAsInteger:(Ljava/lang/String;)I
invokespecial org.jboss.resteasy.core.request.QualityValue.<init>:(I)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 qvalue Ljava/lang/String;
MethodParameters:
Name Flags
qvalue
public boolean isPrefered();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
getstatic org.jboss.resteasy.core.request.QualityValue.HIGHEST:Lorg/jboss/resteasy/core/request/QualityValue;
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/core/request/QualityValue;
public boolean isAcceptable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
getstatic org.jboss.resteasy.core.request.QualityValue.NOT_ACCEPTABLE:Lorg/jboss/resteasy/core/request/QualityValue;
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/core/request/QualityValue;
public int compareTo(org.jboss.resteasy.core.request.QualityValue);
descriptor: (Lorg/jboss/resteasy/core/request/QualityValue;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
aload 1
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/request/QualityValue;
0 1 1 o Lorg/jboss/resteasy/core/request/QualityValue;
MethodParameters:
Name Flags
o
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Lorg/jboss/resteasy/core/request/QualityValue;
if_acmpeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.jboss.resteasy.core.request.QualityValue
astore 2
start local 2 3: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
aload 2
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
if_icmpne 4
iconst_1
ireturn
StackMap locals: org.jboss.resteasy.core.request.QualityValue
StackMap stack:
4: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/core/request/QualityValue;
0 5 1 o Ljava/lang/Object;
3 5 2 other Lorg/jboss/resteasy/core/request/QualityValue;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/request/QualityValue;
public double doubleValue();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
i2d
ldc 1000.0
ddiv
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/request/QualityValue;
public float floatValue();
descriptor: ()F
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
i2f
ldc 1000.0
fdiv
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/request/QualityValue;
public int intValue();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/request/QualityValue;
public long longValue();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.core.request.QualityValue.WEIGHT:I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/core/request/QualityValue;
private static int parseAsInteger(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iload 1
ifeq 2
iload 1
iconst_5
if_icmple 3
2: StackMap locals: int
StackMap stack:
new org.jboss.resteasy.spi.BadRequestException
dup
getstatic org.jboss.resteasy.core.request.QualityValue.MALFORMED_VALUE_MESSAGE:Ljava/lang/String;
invokespecial org.jboss.resteasy.spi.BadRequestException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
iload 1
iconst_1
if_icmple 5
aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpeq 5
4: new org.jboss.resteasy.spi.BadRequestException
dup
getstatic org.jboss.resteasy.core.request.QualityValue.MALFORMED_VALUE_MESSAGE:Ljava/lang/String;
invokespecial org.jboss.resteasy.spi.BadRequestException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.codePointAt:(I)I
istore 2
start local 2 6: iload 2
bipush 49
if_icmpne 14
7: iconst_2
istore 3
start local 3 8: goto 12
9: StackMap locals: int int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmpeq 11
10: new org.jboss.resteasy.spi.BadRequestException
dup
getstatic org.jboss.resteasy.core.request.QualityValue.MALFORMED_VALUE_MESSAGE:Ljava/lang/String;
invokespecial org.jboss.resteasy.spi.BadRequestException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
iload 1
if_icmplt 9
end local 3 13: sipush 1000
ireturn
14: StackMap locals:
StackMap stack:
iload 2
bipush 48
if_icmpne 27
15: iconst_0
istore 3
start local 3 16: iconst_2
istore 4
start local 4 17: goto 25
18: StackMap locals: int int
StackMap stack:
iload 3
bipush 10
imul
istore 3
19: iload 4
iload 1
if_icmpge 24
20: aload 0
iload 4
invokevirtual java.lang.String.codePointAt:(I)I
bipush 48
isub
istore 5
start local 5 21: iload 5
iflt 22
iload 5
bipush 9
if_icmple 23
22: StackMap locals: int
StackMap stack:
new org.jboss.resteasy.spi.BadRequestException
dup
getstatic org.jboss.resteasy.core.request.QualityValue.MALFORMED_VALUE_MESSAGE:Ljava/lang/String;
invokespecial org.jboss.resteasy.spi.BadRequestException.<init>:(Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack:
iload 3
iload 5
iadd
istore 3
end local 5 24: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
25: iload 4
iconst_5
if_icmplt 18
end local 4 26: iload 3
ireturn
end local 3 27: StackMap locals:
StackMap stack:
new org.jboss.resteasy.spi.BadRequestException
dup
getstatic org.jboss.resteasy.core.request.QualityValue.MALFORMED_VALUE_MESSAGE:Ljava/lang/String;
invokespecial org.jboss.resteasy.spi.BadRequestException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 value Ljava/lang/String;
1 28 1 length I
6 28 2 firstCharacter I
8 13 3 i I
16 27 3 weight I
17 26 4 i I
21 24 5 digit I
MethodParameters:
Name Flags
value
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 org.jboss.resteasy.core.request.QualityValue
invokevirtual org.jboss.resteasy.core.request.QualityValue.compareTo:(Lorg/jboss/resteasy/core/request/QualityValue;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Number;Ljava/lang/Comparable<Lorg/jboss/resteasy/core/request/QualityValue;>;
SourceFile: "QualityValue.java"