public class PsiFormatUtil extends PsiFormatUtilBase
Modifier and Type | Class and Description |
---|---|
static interface |
PsiFormatUtil.FormatClassOptions |
static interface |
PsiFormatUtil.FormatMethodOptions |
static interface |
PsiFormatUtil.FormatVariableOptions |
JAVADOC_MODIFIERS_ONLY, MAX_PARAMS_TO_SHOW, MODIFIERS_AFTER, SHOW_ANONYMOUS_CLASS_VERBOSE, SHOW_CONTAINING_CLASS, SHOW_EXTENDS_IMPLEMENTS, SHOW_FQ_CLASS_NAMES, SHOW_FQ_NAME, SHOW_INITIALIZER, SHOW_MODIFIERS, SHOW_NAME, SHOW_PACKAGE_LOCAL, SHOW_PARAMETERS, SHOW_RAW_NON_TOP_TYPE, SHOW_RAW_TYPE, SHOW_REDUNDANT_MODIFIERS, SHOW_THROWS, SHOW_TYPE, TYPE_AFTER, USE_INTERNAL_CANONICAL_TEXT
Constructor and Description |
---|
PsiFormatUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatClass(PsiClass aClass,
int options) |
static java.lang.String |
formatMethod(PsiMethod method,
PsiSubstitutor substitutor,
int options,
int parameterOptions) |
static java.lang.String |
formatMethod(PsiMethod method,
PsiSubstitutor substitutor,
int options,
int parameterOptions,
int maxParametersToShow) |
static java.lang.String |
formatModifiers(PsiModifierListOwner element,
int options) |
static java.lang.String |
formatReference(PsiJavaCodeReferenceElement ref,
int options) |
static java.lang.String |
formatType(PsiType type,
int options,
PsiSubstitutor substitutor) |
static java.lang.String |
formatVariable(PsiVariable variable,
int options,
PsiSubstitutor substitutor) |
static java.lang.String |
getExternalName(PsiModifierListOwner owner) |
static java.lang.String |
getExternalName(PsiModifierListOwner owner,
boolean showParamName) |
static java.lang.String |
getExternalName(PsiModifierListOwner owner,
boolean showParamName,
int maxParamsToShow) |
static java.lang.String |
getPackageDisplayName(PsiClass psiClass) |
appendSpaceIfNeeded
public static java.lang.String formatVariable(PsiVariable variable, int options, PsiSubstitutor substitutor)
public static java.lang.String formatMethod(PsiMethod method, PsiSubstitutor substitutor, int options, int parameterOptions)
public static java.lang.String formatMethod(PsiMethod method, PsiSubstitutor substitutor, int options, int parameterOptions, int maxParametersToShow)
public static java.lang.String formatClass(PsiClass aClass, int options)
public static java.lang.String formatModifiers(PsiModifierListOwner element, int options)
public static java.lang.String formatType(PsiType type, int options, PsiSubstitutor substitutor)
public static java.lang.String formatReference(PsiJavaCodeReferenceElement ref, int options)
public static java.lang.String getExternalName(PsiModifierListOwner owner)
public static java.lang.String getExternalName(PsiModifierListOwner owner, boolean showParamName)
public static java.lang.String getExternalName(PsiModifierListOwner owner, boolean showParamName, int maxParamsToShow)
public static java.lang.String getPackageDisplayName(PsiClass psiClass)