final class com.google.common.io.BaseEncoding$Alphabet
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.google.common.io.BaseEncoding$Alphabet
super_class: java.lang.Object
{
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final char[] chars;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final int mask;
descriptor: I
flags: (0x0010) ACC_FINAL
final int bitsPerChar;
descriptor: I
flags: (0x0010) ACC_FINAL
final int charsPerChunk;
descriptor: I
flags: (0x0010) ACC_FINAL
final int bytesPerChunk;
descriptor: I
flags: (0x0010) ACC_FINAL
private final byte[] decodabet;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean[] validPadding;
descriptor: [Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, char[]);
descriptor: (Ljava/lang/String;[C)V
flags: (0x0000)
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield com.google.common.io.BaseEncoding$Alphabet.name:Ljava/lang/String;
2: aload 0
aload 2
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast char[]
putfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
3: aload 0
aload 2
arraylength
getstatic java.math.RoundingMode.UNNECESSARY:Ljava/math/RoundingMode;
invokestatic com.google.common.math.IntMath.log2:(ILjava/math/RoundingMode;)I
putfield com.google.common.io.BaseEncoding$Alphabet.bitsPerChar:I
4: goto 7
StackMap locals: com.google.common.io.BaseEncoding$Alphabet java.lang.String char[]
StackMap stack: java.lang.ArithmeticException
5: astore 3
start local 3 6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Illegal alphabet length "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 7: StackMap locals:
StackMap stack:
bipush 8
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.bitsPerChar:I
invokestatic java.lang.Integer.lowestOneBit:(I)I
invokestatic java.lang.Math.min:(II)I
istore 3
start local 3 8: aload 0
bipush 8
iload 3
idiv
putfield com.google.common.io.BaseEncoding$Alphabet.charsPerChunk:I
9: aload 0
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.bitsPerChar:I
iload 3
idiv
putfield com.google.common.io.BaseEncoding$Alphabet.bytesPerChunk:I
10: goto 13
StackMap locals: com.google.common.io.BaseEncoding$Alphabet java.lang.String char[] int
StackMap stack: java.lang.ArithmeticException
11: astore 4
start local 4 12: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Illegal alphabet "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
new java.lang.String
dup
aload 2
invokespecial java.lang.String.<init>:([C)V
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 13: StackMap locals:
StackMap stack:
aload 0
aload 2
arraylength
iconst_1
isub
putfield com.google.common.io.BaseEncoding$Alphabet.mask:I
14: sipush 128
newarray 8
astore 4
start local 4 15: aload 4
iconst_m1
invokestatic java.util.Arrays.fill:([BB)V
16: iconst_0
istore 5
start local 5 17: goto 27
18: StackMap locals: byte[] int
StackMap stack:
aload 2
iload 5
caload
istore 6
start local 6 19: iload 6
aload 4
arraylength
if_icmpge 20
iconst_1
goto 21
StackMap locals: int
StackMap stack:
20: iconst_0
StackMap locals:
StackMap stack: int
21: ldc "Non-ASCII character: %s"
iload 6
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;C)V
22: aload 4
iload 6
baload
iconst_m1
if_icmpne 23
iconst_1
goto 24
StackMap locals:
StackMap stack:
23: iconst_0
StackMap locals:
StackMap stack: int
24: ldc "Duplicate character: %s"
iload 6
invokestatic com.google.common.base.Preconditions.checkArgument:(ZLjava/lang/String;C)V
25: aload 4
iload 6
iload 5
i2b
bastore
end local 6 26: iinc 5 1
StackMap locals:
StackMap stack:
27: iload 5
aload 2
arraylength
if_icmplt 18
end local 5 28: aload 0
aload 4
putfield com.google.common.io.BaseEncoding$Alphabet.decodabet:[B
29: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.charsPerChunk:I
newarray 4
astore 5
start local 5 30: iconst_0
istore 6
start local 6 31: goto 34
32: StackMap locals: com.google.common.io.BaseEncoding$Alphabet java.lang.String char[] int byte[] boolean[] int
StackMap stack:
aload 5
iload 6
bipush 8
imul
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.bitsPerChar:I
getstatic java.math.RoundingMode.CEILING:Ljava/math/RoundingMode;
invokestatic com.google.common.math.IntMath.divide:(IILjava/math/RoundingMode;)I
iconst_1
bastore
33: iinc 6 1
StackMap locals:
StackMap stack:
34: iload 6
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.bytesPerChunk:I
if_icmplt 32
end local 6 35: aload 0
aload 5
putfield com.google.common.io.BaseEncoding$Alphabet.validPadding:[Z
36: 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 37 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
0 37 1 name Ljava/lang/String;
0 37 2 chars [C
6 7 3 e Ljava/lang/ArithmeticException;
8 37 3 gcd I
12 13 4 e Ljava/lang/ArithmeticException;
15 37 4 decodabet [B
17 28 5 i I
19 26 6 c C
30 37 5 validPadding [Z
31 35 6 i I
Exception table:
from to target type
3 4 5 Class java.lang.ArithmeticException
8 10 11 Class java.lang.ArithmeticException
MethodParameters:
Name Flags
name
chars
char encode(int);
descriptor: (I)C
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
iload 1
caload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
0 1 1 bits I
MethodParameters:
Name Flags
bits
boolean isValidPaddingStartPosition(int);
descriptor: (I)Z
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.validPadding:[Z
iload 1
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.charsPerChunk:I
irem
baload
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
0 1 1 index I
MethodParameters:
Name Flags
index
boolean canDecode(char);
descriptor: (C)Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
bipush 127
if_icmpgt 1
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.decodabet:[B
iload 1
baload
iconst_m1
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
0 2 1 ch C
MethodParameters:
Name Flags
ch
int decode(char);
descriptor: (C)I
flags: (0x0000)
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: iload 1
bipush 127
if_icmple 2
1: new com.google.common.io.BaseEncoding$DecodingException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized character: 0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.google.common.io.BaseEncoding$DecodingException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.decodabet:[B
iload 1
baload
istore 2
start local 2 3: iload 2
iconst_m1
if_icmpne 7
4: iload 1
bipush 32
if_icmple 5
iload 1
bipush 127
if_icmpne 6
5: StackMap locals: int
StackMap stack:
new com.google.common.io.BaseEncoding$DecodingException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized character: 0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.google.common.io.BaseEncoding$DecodingException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
new com.google.common.io.BaseEncoding$DecodingException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized character: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.google.common.io.BaseEncoding$DecodingException.<init>:(Ljava/lang/String;)V
athrow
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 Lcom/google/common/io/BaseEncoding$Alphabet;
0 8 1 ch C
3 8 2 result I
Exceptions:
throws com.google.common.io.BaseEncoding$DecodingException
MethodParameters:
Name Flags
ch
private boolean hasLowerCase();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 5
StackMap locals: com.google.common.io.BaseEncoding$Alphabet top int int char[]
StackMap stack:
1: aload 4
iload 2
caload
istore 1
start local 1 2: iload 1
invokestatic com.google.common.base.Ascii.isLowerCase:(C)Z
ifeq 4
3: iconst_1
ireturn
end local 1 4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 1
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
2 4 1 c C
private boolean hasUpperCase();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 5
StackMap locals: com.google.common.io.BaseEncoding$Alphabet top int int char[]
StackMap stack:
1: aload 4
iload 2
caload
istore 1
start local 1 2: iload 1
invokestatic com.google.common.base.Ascii.isUpperCase:(C)Z
ifeq 4
3: iconst_1
ireturn
end local 1 4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
iload 3
if_icmplt 1
6: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
2 4 1 c C
com.google.common.io.BaseEncoding$Alphabet upperCase();
descriptor: ()Lcom/google/common/io/BaseEncoding$Alphabet;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.io.BaseEncoding$Alphabet.hasLowerCase:()Z
ifne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.io.BaseEncoding$Alphabet.hasUpperCase:()Z
ifeq 3
iconst_0
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ldc "Cannot call upperCase() on a mixed-case alphabet"
invokestatic com.google.common.base.Preconditions.checkState:(ZLjava/lang/Object;)V
5: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
arraylength
newarray 5
astore 1
start local 1 6: iconst_0
istore 2
start local 2 7: goto 10
8: StackMap locals: char[] int
StackMap stack:
aload 1
iload 2
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
iload 2
caload
invokestatic com.google.common.base.Ascii.toUpperCase:(C)C
castore
9: iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
arraylength
if_icmplt 8
end local 2 11: new com.google.common.io.BaseEncoding$Alphabet
dup
new java.lang.StringBuilder
dup
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.name:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".upperCase()"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial com.google.common.io.BaseEncoding$Alphabet.<init>:(Ljava/lang/String;[C)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
6 12 1 upperCased [C
7 11 2 i I
com.google.common.io.BaseEncoding$Alphabet lowerCase();
descriptor: ()Lcom/google/common/io/BaseEncoding$Alphabet;
flags: (0x0000)
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.google.common.io.BaseEncoding$Alphabet.hasUpperCase:()Z
ifne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.google.common.io.BaseEncoding$Alphabet.hasLowerCase:()Z
ifeq 3
iconst_0
goto 4
StackMap locals:
StackMap stack:
3: iconst_1
StackMap locals:
StackMap stack: int
4: ldc "Cannot call lowerCase() on a mixed-case alphabet"
invokestatic com.google.common.base.Preconditions.checkState:(ZLjava/lang/Object;)V
5: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
arraylength
newarray 5
astore 1
start local 1 6: iconst_0
istore 2
start local 2 7: goto 10
8: StackMap locals: char[] int
StackMap stack:
aload 1
iload 2
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
iload 2
caload
invokestatic com.google.common.base.Ascii.toLowerCase:(C)C
castore
9: iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
arraylength
if_icmplt 8
end local 2 11: new com.google.common.io.BaseEncoding$Alphabet
dup
new java.lang.StringBuilder
dup
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.name:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".lowerCase()"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial com.google.common.io.BaseEncoding$Alphabet.<init>:(Ljava/lang/String;[C)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
6 12 1 lowerCased [C
7 11 2 i I
public boolean matches(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.decodabet:[B
arraylength
if_icmpge 1
aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.decodabet:[B
iload 1
baload
iconst_m1
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
0 2 1 c C
MethodParameters:
Name Flags
c
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
getfield com.google.common.io.BaseEncoding$Alphabet.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
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
instanceof com.google.common.io.BaseEncoding$Alphabet
ifeq 3
1: aload 1
checkcast com.google.common.io.BaseEncoding$Alphabet
astore 2
start local 2 2: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
aload 2
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
invokestatic java.util.Arrays.equals:([C[C)Z
ireturn
end local 2 3: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
0 4 1 other Ljava/lang/Object;
2 3 2 that Lcom/google/common/io/BaseEncoding$Alphabet;
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
org.checkerframework.checker.nullness.qual.Nullable()
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.common.io.BaseEncoding$Alphabet.chars:[C
invokestatic java.util.Arrays.hashCode:([C)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/io/BaseEncoding$Alphabet;
}
SourceFile: "BaseEncoding.java"
NestHost: com.google.common.io.BaseEncoding
InnerClasses:
private final Alphabet = com.google.common.io.BaseEncoding$Alphabet of com.google.common.io.BaseEncoding
public final DecodingException = com.google.common.io.BaseEncoding$DecodingException of com.google.common.io.BaseEncoding