public final class org.jruby.util.KCode extends java.lang.Enum<org.jruby.util.KCode>
minor version: 0
major version: 59
flags: flags: (0x4031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER, ACC_ANNOTATION
this_class: org.jruby.util.KCode
super_class: java.lang.Enum
{
public static final org.jruby.util.KCode NIL;
descriptor: Lorg/jruby/util/KCode;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.jruby.util.KCode NONE;
descriptor: Lorg/jruby/util/KCode;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.jruby.util.KCode UTF8;
descriptor: Lorg/jruby/util/KCode;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.jruby.util.KCode SJIS;
descriptor: Lorg/jruby/util/KCode;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
public static final org.jruby.util.KCode EUC;
descriptor: Lorg/jruby/util/KCode;
flags: (0x4019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL, ACC_ANNOTATION
private final java.lang.String kcode;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jcodings.Encoding encoding;
descriptor: Lorg/jcodings/Encoding;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int code;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final org.jruby.util.KCode[] ENUM$VALUES;
descriptor: [Lorg/jruby/util/KCode;
flags: (0x101a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: new org.jruby.util.KCode
dup
ldc "NIL"
iconst_0
aconst_null
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
iconst_0
invokespecial org.jruby.util.KCode.<init>:(Ljava/lang/String;ILjava/lang/String;Lorg/jcodings/Encoding;I)V
putstatic org.jruby.util.KCode.NIL:Lorg/jruby/util/KCode;
1: new org.jruby.util.KCode
dup
ldc "NONE"
iconst_1
ldc "NONE"
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
iconst_0
invokespecial org.jruby.util.KCode.<init>:(Ljava/lang/String;ILjava/lang/String;Lorg/jcodings/Encoding;I)V
putstatic org.jruby.util.KCode.NONE:Lorg/jruby/util/KCode;
2: new org.jruby.util.KCode
dup
ldc "UTF8"
iconst_2
ldc "UTF8"
getstatic org.jcodings.specific.UTF8Encoding.INSTANCE:Lorg/jcodings/specific/UTF8Encoding;
bipush 64
invokespecial org.jruby.util.KCode.<init>:(Ljava/lang/String;ILjava/lang/String;Lorg/jcodings/Encoding;I)V
putstatic org.jruby.util.KCode.UTF8:Lorg/jruby/util/KCode;
3: new org.jruby.util.KCode
dup
ldc "SJIS"
iconst_3
ldc "SJIS"
getstatic org.jcodings.specific.SJISEncoding.INSTANCE:Lorg/jcodings/specific/SJISEncoding;
bipush 48
invokespecial org.jruby.util.KCode.<init>:(Ljava/lang/String;ILjava/lang/String;Lorg/jcodings/Encoding;I)V
putstatic org.jruby.util.KCode.SJIS:Lorg/jruby/util/KCode;
4: new org.jruby.util.KCode
dup
ldc "EUC"
iconst_4
ldc "EUC"
getstatic org.jcodings.specific.EUCJPEncoding.INSTANCE:Lorg/jcodings/specific/EUCJPEncoding;
bipush 32
invokespecial org.jruby.util.KCode.<init>:(Ljava/lang/String;ILjava/lang/String;Lorg/jcodings/Encoding;I)V
putstatic org.jruby.util.KCode.EUC:Lorg/jruby/util/KCode;
5: iconst_5
anewarray org.jruby.util.KCode
dup
iconst_0
getstatic org.jruby.util.KCode.NIL:Lorg/jruby/util/KCode;
aastore
dup
iconst_1
getstatic org.jruby.util.KCode.NONE:Lorg/jruby/util/KCode;
aastore
dup
iconst_2
getstatic org.jruby.util.KCode.UTF8:Lorg/jruby/util/KCode;
aastore
dup
iconst_3
getstatic org.jruby.util.KCode.SJIS:Lorg/jruby/util/KCode;
aastore
dup
iconst_4
getstatic org.jruby.util.KCode.EUC:Lorg/jruby/util/KCode;
aastore
putstatic org.jruby.util.KCode.ENUM$VALUES:[Lorg/jruby/util/KCode;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String, int, java.lang.String, org.jcodings.Encoding, int);
descriptor: (Ljava/lang/String;ILjava/lang/String;Lorg/jcodings/Encoding;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=6
start local 0 start local 3 start local 4 start local 5 0: aload 0
aload 1
iload 2
invokespecial java.lang.Enum.<init>:(Ljava/lang/String;I)V
1: aload 0
aload 3
putfield org.jruby.util.KCode.kcode:Ljava/lang/String;
2: aload 0
aload 4
putfield org.jruby.util.KCode.encoding:Lorg/jcodings/Encoding;
3: aload 0
iload 5
putfield org.jruby.util.KCode.code:I
4: return
end local 5 end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/util/KCode;
0 5 3 kcode Ljava/lang/String;
0 5 4 encoding Lorg/jcodings/Encoding;
0 5 5 code I
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
kcode
encoding
code
public static org.jruby.util.KCode create(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jruby/util/KCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 1
getstatic org.jruby.util.KCode.NIL:Lorg/jruby/util/KCode;
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
ifne 2
getstatic org.jruby.util.KCode.NONE:Lorg/jruby/util/KCode;
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 10
65: 6
69: 3
78: 6
83: 4
85: 5
97: 6
101: 3
110: 6
115: 4
117: 5
default: 7
}
3: StackMap locals:
StackMap stack:
getstatic org.jruby.util.KCode.EUC:Lorg/jruby/util/KCode;
areturn
4: StackMap locals:
StackMap stack:
getstatic org.jruby.util.KCode.SJIS:Lorg/jruby/util/KCode;
areturn
5: StackMap locals:
StackMap stack:
getstatic org.jruby.util.KCode.UTF8:Lorg/jruby/util/KCode;
areturn
6: StackMap locals:
StackMap stack:
getstatic org.jruby.util.KCode.NONE:Lorg/jruby/util/KCode;
areturn
7: StackMap locals:
StackMap stack:
getstatic org.jruby.util.KCode.NIL:Lorg/jruby/util/KCode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 lang Ljava/lang/String;
MethodParameters:
Name Flags
lang
public java.lang.String getKCode();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.KCode.kcode:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/KCode;
public int bits();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.KCode.code:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/KCode;
public static org.jruby.util.KCode fromBits(int);
descriptor: (I)Lorg/jruby/util/KCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 64
iand
ifeq 1
getstatic org.jruby.util.KCode.UTF8:Lorg/jruby/util/KCode;
areturn
1: StackMap locals:
StackMap stack:
iload 0
bipush 48
iand
bipush 48
if_icmpne 2
getstatic org.jruby.util.KCode.SJIS:Lorg/jruby/util/KCode;
areturn
2: StackMap locals:
StackMap stack:
iload 0
bipush 32
iand
ifeq 3
getstatic org.jruby.util.KCode.EUC:Lorg/jruby/util/KCode;
areturn
3: StackMap locals:
StackMap stack:
getstatic org.jruby.util.KCode.NONE:Lorg/jruby/util/KCode;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bits I
MethodParameters:
Name Flags
bits
public org.jcodings.Encoding getEncoding();
descriptor: ()Lorg/jcodings/Encoding;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.KCode.encoding:Lorg/jcodings/Encoding;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/KCode;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.KCode.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/KCode;
public static org.jruby.util.KCode[] values();
descriptor: ()[Lorg/jruby/util/KCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=0
0: getstatic org.jruby.util.KCode.ENUM$VALUES:[Lorg/jruby/util/KCode;
dup
astore 0
iconst_0
aload 0
arraylength
dup
istore 1
anewarray org.jruby.util.KCode
dup
astore 2
iconst_0
iload 1
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
aload 2
areturn
LocalVariableTable:
Start End Slot Name Signature
public static org.jruby.util.KCode valueOf(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jruby/util/KCode;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
0: ldc Lorg/jruby/util/KCode;
aload 0
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
checkcast org.jruby.util.KCode
areturn
LocalVariableTable:
Start End Slot Name Signature
MethodParameters:
Name Flags
name
}
Signature: Ljava/lang/Enum<Lorg/jruby/util/KCode;>;
SourceFile: "KCode.java"