public class VisibilityUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ESCALATE_VISIBILITY |
Modifier and Type | Method and Description |
---|---|
static int |
compare(java.lang.String v1,
java.lang.String v2) |
static void |
escalateVisibility(PsiMember modifierListOwner,
PsiElement place) |
static void |
escalateVisibility(PsiModifierList modifierList,
PsiElement place) |
static void |
fixVisibility(PsiElement[] elements,
PsiMember member,
java.lang.String newVisibility) |
static void |
fixVisibility(PsiExpression[] expressions,
PsiMember member,
java.lang.String newVisibility) |
static java.lang.String |
getHighestVisibility(java.lang.String v1,
java.lang.String v2) |
static java.lang.String |
getPossibleVisibility(PsiMember psiMethod,
PsiElement place) |
static java.lang.String |
getVisibilityModifier(PsiModifierList list) |
static java.lang.String |
getVisibilityString(java.lang.String visibilityModifier) |
static java.lang.String |
getVisibilityStringToDisplay(PsiMember member) |
static void |
setVisibility(PsiModifierList modifierList,
java.lang.String newVisibility) |
static java.lang.String |
toPresentableText(java.lang.String modifier) |
public static final java.lang.String ESCALATE_VISIBILITY
public static int compare(java.lang.String v1, java.lang.String v2)
public static java.lang.String getHighestVisibility(java.lang.String v1, java.lang.String v2)
public static void escalateVisibility(PsiMember modifierListOwner, PsiElement place) throws IncorrectOperationException
IncorrectOperationException
public static void escalateVisibility(PsiModifierList modifierList, PsiElement place) throws IncorrectOperationException
IncorrectOperationException
public static java.lang.String getPossibleVisibility(PsiMember psiMethod, PsiElement place)
public static java.lang.String getVisibilityModifier(PsiModifierList list)
public static java.lang.String getVisibilityString(java.lang.String visibilityModifier)
public static java.lang.String getVisibilityStringToDisplay(PsiMember member)
public static java.lang.String toPresentableText(java.lang.String modifier)
public static void fixVisibility(PsiElement[] elements, PsiMember member, java.lang.String newVisibility)
public static void setVisibility(PsiModifierList modifierList, java.lang.String newVisibility) throws IncorrectOperationException
IncorrectOperationException
public static void fixVisibility(PsiExpression[] expressions, PsiMember member, java.lang.String newVisibility)