public class javax.ws.rs.core.Variant
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.ws.rs.core.Variant
super_class: java.lang.Object
{
private java.util.Locale language;
descriptor: Ljava/util/Locale;
flags: (0x0002) ACC_PRIVATE
private javax.ws.rs.core.MediaType mediaType;
descriptor: Ljavax/ws/rs/core/MediaType;
flags: (0x0002) ACC_PRIVATE
private java.lang.String encoding;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(javax.ws.rs.core.MediaType, java.lang.String, java.lang.String);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
aload 2
ifnonnull 3
aload 3
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "mediaType, language, encoding all null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.lang.String java.lang.String
StackMap stack:
aload 0
aload 3
putfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
4: aload 0
aload 2
ifnonnull 5
aconst_null
goto 6
StackMap locals:
StackMap stack: javax.ws.rs.core.Variant
5: new java.util.Locale
dup
aload 2
invokespecial java.util.Locale.<init>:(Ljava/lang/String;)V
StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.lang.String java.lang.String
StackMap stack: javax.ws.rs.core.Variant java.util.Locale
6: putfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
7: aload 0
aload 1
putfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/ws/rs/core/Variant;
0 9 1 mediaType Ljavax/ws/rs/core/MediaType;
0 9 2 language Ljava/lang/String;
0 9 3 encoding Ljava/lang/String;
MethodParameters:
Name Flags
mediaType
language
encoding
public void <init>(javax.ws.rs.core.MediaType, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
aload 2
ifnonnull 3
aload 4
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "mediaType, language, encoding all null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 0
aload 4
putfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
4: aload 0
aload 2
ifnonnull 5
aconst_null
goto 6
StackMap locals:
StackMap stack: javax.ws.rs.core.Variant
5: new java.util.Locale
dup
aload 2
aload 3
invokespecial java.util.Locale.<init>:(Ljava/lang/String;Ljava/lang/String;)V
StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.lang.String java.lang.String java.lang.String
StackMap stack: javax.ws.rs.core.Variant java.util.Locale
6: putfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
7: aload 0
aload 1
putfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/ws/rs/core/Variant;
0 9 1 mediaType Ljavax/ws/rs/core/MediaType;
0 9 2 language Ljava/lang/String;
0 9 3 country Ljava/lang/String;
0 9 4 encoding Ljava/lang/String;
MethodParameters:
Name Flags
mediaType
language
country
encoding
public void <init>(javax.ws.rs.core.MediaType, java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
aload 2
ifnonnull 3
aload 5
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "mediaType, language, encoding all null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 0
aload 5
putfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
4: aload 0
aload 2
ifnonnull 5
aconst_null
goto 6
StackMap locals:
StackMap stack: javax.ws.rs.core.Variant
5: new java.util.Locale
dup
aload 2
aload 3
aload 4
invokespecial java.util.Locale.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.lang.String java.lang.String java.lang.String java.lang.String
StackMap stack: javax.ws.rs.core.Variant java.util.Locale
6: putfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
7: aload 0
aload 1
putfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
8: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljavax/ws/rs/core/Variant;
0 9 1 mediaType Ljavax/ws/rs/core/MediaType;
0 9 2 language Ljava/lang/String;
0 9 3 country Ljava/lang/String;
0 9 4 languageVariant Ljava/lang/String;
0 9 5 encoding Ljava/lang/String;
MethodParameters:
Name Flags
mediaType
language
country
languageVariant
encoding
public void <init>(javax.ws.rs.core.MediaType, java.util.Locale, java.lang.String);
descriptor: (Ljavax/ws/rs/core/MediaType;Ljava/util/Locale;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
aload 2
ifnonnull 3
aload 3
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "mediaType, language, encoding all null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: javax.ws.rs.core.Variant javax.ws.rs.core.MediaType java.util.Locale java.lang.String
StackMap stack:
aload 0
aload 3
putfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
4: aload 0
aload 2
putfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
5: aload 0
aload 1
putfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/ws/rs/core/Variant;
0 7 1 mediaType Ljavax/ws/rs/core/MediaType;
0 7 2 language Ljava/util/Locale;
0 7 3 encoding Ljava/lang/String;
MethodParameters:
Name Flags
mediaType
language
encoding
public java.util.Locale getLanguage();
descriptor: ()Ljava/util/Locale;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/Variant;
public java.lang.String getLanguageString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
invokevirtual java.util.Locale.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/ws/rs/core/Variant;
public javax.ws.rs.core.MediaType getMediaType();
descriptor: ()Ljavax/ws/rs/core/MediaType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/Variant;
public java.lang.String getEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/ws/rs/core/Variant;
public static javax.ws.rs.core.Variant$VariantListBuilder mediaTypes(javax.ws.rs.core.MediaType[]);
descriptor: ([Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/core/Variant$VariantListBuilder;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic javax.ws.rs.core.Variant$VariantListBuilder.newInstance:()Ljavax/ws/rs/core/Variant$VariantListBuilder;
astore 1
start local 1 1: aload 1
aload 0
invokevirtual javax.ws.rs.core.Variant$VariantListBuilder.mediaTypes:([Ljavax/ws/rs/core/MediaType;)Ljavax/ws/rs/core/Variant$VariantListBuilder;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 mediaTypes [Ljavax/ws/rs/core/MediaType;
1 3 1 b Ljavax/ws/rs/core/Variant$VariantListBuilder;
MethodParameters:
Name Flags
mediaTypes
public static javax.ws.rs.core.Variant$VariantListBuilder languages(java.util.Locale[]);
descriptor: ([Ljava/util/Locale;)Ljavax/ws/rs/core/Variant$VariantListBuilder;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic javax.ws.rs.core.Variant$VariantListBuilder.newInstance:()Ljavax/ws/rs/core/Variant$VariantListBuilder;
astore 1
start local 1 1: aload 1
aload 0
invokevirtual javax.ws.rs.core.Variant$VariantListBuilder.languages:([Ljava/util/Locale;)Ljavax/ws/rs/core/Variant$VariantListBuilder;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 languages [Ljava/util/Locale;
1 3 1 b Ljavax/ws/rs/core/Variant$VariantListBuilder;
MethodParameters:
Name Flags
languages
public static javax.ws.rs.core.Variant$VariantListBuilder encodings(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljavax/ws/rs/core/Variant$VariantListBuilder;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=2, args_size=1
start local 0 0: invokestatic javax.ws.rs.core.Variant$VariantListBuilder.newInstance:()Ljavax/ws/rs/core/Variant$VariantListBuilder;
astore 1
start local 1 1: aload 1
aload 0
invokevirtual javax.ws.rs.core.Variant$VariantListBuilder.encodings:([Ljava/lang/String;)Ljavax/ws/rs/core/Variant$VariantListBuilder;
pop
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 encodings [Ljava/lang/String;
1 3 1 b Ljavax/ws/rs/core/Variant$VariantListBuilder;
MethodParameters:
Name Flags
encodings
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: bipush 7
istore 1
start local 1 1: bipush 29
iload 1
imul
aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
ifnull 2
aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
invokevirtual java.util.Locale.hashCode:()I
goto 3
StackMap locals: javax.ws.rs.core.Variant int
StackMap stack: int
2: iconst_0
StackMap locals: javax.ws.rs.core.Variant int
StackMap stack: int int
3: iadd
istore 1
4: bipush 29
iload 1
imul
aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
ifnull 5
aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
invokevirtual javax.ws.rs.core.MediaType.hashCode:()I
goto 6
StackMap locals:
StackMap stack: int
5: iconst_0
StackMap locals: javax.ws.rs.core.Variant int
StackMap stack: int int
6: iadd
istore 1
7: bipush 29
iload 1
imul
aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
ifnull 8
aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
goto 9
StackMap locals:
StackMap stack: int
8: iconst_0
StackMap locals: javax.ws.rs.core.Variant int
StackMap stack: int int
9: iadd
istore 1
10: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/ws/rs/core/Variant;
1 11 1 hash I
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
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast javax.ws.rs.core.Variant
astore 2
start local 2 5: aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
aload 2
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
if_acmpeq 7
aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
ifnull 6
aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
aload 2
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
invokevirtual java.util.Locale.equals:(Ljava/lang/Object;)Z
ifne 7
6: StackMap locals: javax.ws.rs.core.Variant
StackMap stack:
iconst_0
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
aload 2
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
if_acmpeq 9
aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
ifnull 8
aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
aload 2
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
invokevirtual javax.ws.rs.core.MediaType.equals:(Ljava/lang/Object;)Z
ifne 9
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
aload 2
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
if_acmpeq 11
aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
ifnull 10
aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
aload 2
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
StackMap locals:
StackMap stack:
10: iconst_0
ireturn
StackMap locals:
StackMap stack:
11: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljavax/ws/rs/core/Variant;
0 12 1 obj Ljava/lang/Object;
5 12 2 other Ljavax/ws/rs/core/Variant;
MethodParameters:
Name Flags
obj
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 1
start local 1 1: aload 1
ldc "Variant[mediaType="
invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
2: aload 1
aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
ifnonnull 3
ldc "null"
goto 4
StackMap locals: javax.ws.rs.core.Variant java.io.StringWriter
StackMap stack: java.io.StringWriter
3: aload 0
getfield javax.ws.rs.core.Variant.mediaType:Ljavax/ws/rs/core/MediaType;
invokevirtual javax.ws.rs.core.MediaType.toString:()Ljava/lang/String;
StackMap locals: javax.ws.rs.core.Variant java.io.StringWriter
StackMap stack: java.io.StringWriter java.lang.String
4: invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
5: aload 1
ldc ", language="
invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
6: aload 1
aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
ifnonnull 7
ldc "null"
goto 8
StackMap locals:
StackMap stack: java.io.StringWriter
7: aload 0
getfield javax.ws.rs.core.Variant.language:Ljava/util/Locale;
invokevirtual java.util.Locale.toString:()Ljava/lang/String;
StackMap locals: javax.ws.rs.core.Variant java.io.StringWriter
StackMap stack: java.io.StringWriter java.lang.String
8: invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
9: aload 1
ldc ", encoding="
invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
10: aload 1
aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
ifnonnull 11
ldc "null"
goto 12
StackMap locals:
StackMap stack: java.io.StringWriter
11: aload 0
getfield javax.ws.rs.core.Variant.encoding:Ljava/lang/String;
StackMap locals: javax.ws.rs.core.Variant java.io.StringWriter
StackMap stack: java.io.StringWriter java.lang.String
12: invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
13: aload 1
ldc "]"
invokevirtual java.io.StringWriter.append:(Ljava/lang/CharSequence;)Ljava/io/StringWriter;
pop
14: aload 1
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljavax/ws/rs/core/Variant;
1 15 1 w Ljava/io/StringWriter;
}
SourceFile: "Variant.java"
NestMembers:
javax.ws.rs.core.Variant$VariantListBuilder
InnerClasses:
public abstract VariantListBuilder = javax.ws.rs.core.Variant$VariantListBuilder of javax.ws.rs.core.Variant