public class EnumConstantsUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static PsiEnumConstant |
createEnumConstant(PsiClass enumClass,
PsiLocalVariable local,
java.lang.String fieldName) |
static PsiEnumConstant |
createEnumConstant(PsiClass enumClass,
java.lang.String constantName,
PsiExpression initializerExpr) |
static PsiStatement |
isEnumSwitch(PsiSwitchStatement switchStatement,
PsiType enumValueType,
java.util.Set<java.lang.Object> enumValues) |
static boolean |
isSuitableForEnumConstant(PsiType constantType,
PsiClass enumClass) |
public static boolean isSuitableForEnumConstant(PsiType constantType, PsiClass enumClass)
public static PsiEnumConstant createEnumConstant(PsiClass enumClass, java.lang.String constantName, PsiExpression initializerExpr) throws IncorrectOperationException
IncorrectOperationException
public static PsiEnumConstant createEnumConstant(PsiClass enumClass, PsiLocalVariable local, java.lang.String fieldName) throws IncorrectOperationException
IncorrectOperationException
public static PsiStatement isEnumSwitch(PsiSwitchStatement switchStatement, PsiType enumValueType, java.util.Set<java.lang.Object> enumValues)