源码:
public enum Type {
SELECT, UPDATE, INSERT, DELETE
};
反编译后:
public static final class Type extends Enum
{
public static final Type SELECT;
public static final Type UPDATE;
public static final Type INSERT;
public static final Type DELETE;
private static final Type $VALUES[];
public static final Type[] values()
{
return (Type[])$VALUES.clone();
}
public static Type valueOf(String name)
{
return (Type)Enum.valueOf(com/***/***/***/***$Type, name);
}
static
{
SELECT = new Type("SELECT", 0);
UPDATE = new Type("UPDATE", 1);
INSERT = new Type("INSERT", 2);
DELETE = new Type("DELETE", 3);
$VALUES = (new Type[] {
SELECT, UPDATE, INSERT, DELETE
});
}
private Type(String s, int i)
{
super(s, i);
}
}
转自: http://looksight.blog.sohu.com/88605014.html