* @param name
* @return
*/
public void createEnumConstant(String name){
if(existField){
throw new ASMSupportException("declare enum constant must before other field");
}
existEnumConstant = true;
sc.setEnumNum(sc.getEnumNum() + 1);
enumConstantNameList.add(name);
createGlobalVariable(name, Opcodes.ACC_PUBLIC + Opcodes.ACC_STATIC + Opcodes.ACC_FINAL + Opcodes.ACC_ENUM, sc);