public final class com.google.common.base.Enums
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.common.base.Enums
super_class: java.lang.Object
{
private static final java.util.Map<java.lang.Class<? extends java.lang.Enum<?>>, java.util.Map<java.lang.String, java.lang.ref.WeakReference<? extends java.lang.Enum<?>>>> enumConstantCache;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<+Ljava/lang/Enum<*>;>;Ljava/util/Map<Ljava/lang/String;Ljava/lang/ref/WeakReference<+Ljava/lang/Enum<*>;>;>;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
putstatic com.google.common.base.Enums.enumConstantCache:Ljava/util/Map;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/common/base/Enums;
public static java.lang.reflect.Field getField(java.lang.Enum<?>);
descriptor: (Ljava/lang/Enum;)Ljava/lang/reflect/Field;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Enum.getDeclaringClass:()Ljava/lang/Class;
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
2: areturn
3: StackMap locals: java.lang.Enum java.lang.Class
StackMap stack: java.lang.NoSuchFieldException
astore 2
start local 2 4: new java.lang.AssertionError
dup
aload 2
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 enumValue Ljava/lang/Enum<*>;
1 5 1 clazz Ljava/lang/Class<*>;
4 5 2 impossible Ljava/lang/NoSuchFieldException;
Exception table:
from to target type
1 2 3 Class java.lang.NoSuchFieldException
Signature: (Ljava/lang/Enum<*>;)Ljava/lang/reflect/Field;
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
MethodParameters:
Name Flags
enumValue
public static <T extends java.lang.Enum<T>> com.google.common.base.Optional<T> getIfPresent(java.lang.Class<T>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Lcom/google/common/base/Optional;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic com.google.common.base.Preconditions.checkNotNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
invokestatic com.google.common.base.Platform.getEnumIfPresent:(Ljava/lang/Class;Ljava/lang/String;)Lcom/google/common/base/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 enumClass Ljava/lang/Class<TT;>;
0 3 1 value Ljava/lang/String;
Signature: <T:Ljava/lang/Enum<TT;>;>(Ljava/lang/Class<TT;>;Ljava/lang/String;)Lcom/google/common/base/Optional<TT;>;
MethodParameters:
Name Flags
enumClass
value
private static <T extends java.lang.Enum<T>> java.util.Map<java.lang.String, java.lang.ref.WeakReference<? extends java.lang.Enum<?>>> populateCache(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
invokestatic java.util.EnumSet.allOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
invokevirtual java.util.EnumSet.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: java.lang.Class java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Enum
astore 2
start local 2 3: aload 1
aload 2
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
new java.lang.ref.WeakReference
dup
aload 2
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: getstatic com.google.common.base.Enums.enumConstantCache:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 enumClass Ljava/lang/Class<TT;>;
1 7 1 result Ljava/util/Map<Ljava/lang/String;Ljava/lang/ref/WeakReference<+Ljava/lang/Enum<*>;>;>;
3 4 2 enumInstance TT;
Signature: <T:Ljava/lang/Enum<TT;>;>(Ljava/lang/Class<TT;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/ref/WeakReference<+Ljava/lang/Enum<*>;>;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
MethodParameters:
Name Flags
enumClass
static <T extends java.lang.Enum<T>> java.util.Map<java.lang.String, java.lang.ref.WeakReference<? extends java.lang.Enum<?>>> getEnumConstants(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/util/Map;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: getstatic com.google.common.base.Enums.enumConstantCache:Ljava/util/Map;
dup
astore 1
monitorenter
1: getstatic com.google.common.base.Enums.enumConstantCache:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 2
start local 2 2: aload 2
ifnonnull 4
3: aload 0
invokestatic com.google.common.base.Enums.populateCache:(Ljava/lang/Class;)Ljava/util/Map;
astore 2
4: StackMap locals: java.util.Map java.util.Map
StackMap stack:
aload 2
aload 1
monitorexit
5: areturn
end local 2 6: StackMap locals: java.lang.Class java.util.Map
StackMap stack: java.lang.Throwable
aload 1
monitorexit
7: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 enumClass Ljava/lang/Class<TT;>;
2 6 2 constants Ljava/util/Map<Ljava/lang/String;Ljava/lang/ref/WeakReference<+Ljava/lang/Enum<*>;>;>;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Signature: <T:Ljava/lang/Enum<TT;>;>(Ljava/lang/Class<TT;>;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/ref/WeakReference<+Ljava/lang/Enum<*>;>;>;
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtIncompatible()
MethodParameters:
Name Flags
enumClass
public static <T extends java.lang.Enum<T>> com.google.common.base.Converter<java.lang.String, T> stringConverter(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lcom/google/common/base/Converter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new com.google.common.base.Enums$StringConverter
dup
aload 0
invokespecial com.google.common.base.Enums$StringConverter.<init>:(Ljava/lang/Class;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 enumClass Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Enum<TT;>;>(Ljava/lang/Class<TT;>;)Lcom/google/common/base/Converter<Ljava/lang/String;TT;>;
MethodParameters:
Name Flags
enumClass final
}
SourceFile: "Enums.java"
NestMembers:
com.google.common.base.Enums$StringConverter
InnerClasses:
private final StringConverter = com.google.common.base.Enums$StringConverter of com.google.common.base.Enums
RuntimeInvisibleAnnotations:
com.google.common.annotations.GwtCompatible(emulated = true)