本文整理匯總了Java中com.intellij.psi.util.PsiFormatUtilBase.SHOW_PARAMETERS屬性的典型用法代碼示例。如果您正苦於以下問題:Java PsiFormatUtilBase.SHOW_PARAMETERS屬性的具體用法?Java PsiFormatUtilBase.SHOW_PARAMETERS怎麽用?Java PsiFormatUtilBase.SHOW_PARAMETERS使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.intellij.psi.util.PsiFormatUtilBase
的用法示例。
在下文中一共展示了PsiFormatUtilBase.SHOW_PARAMETERS屬性的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: formatMethodSignature
private static String formatMethodSignature(PsiMethod method, boolean raw, boolean java8Format) {
int options = PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_PARAMETERS;
int parameterOptions = PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.SHOW_FQ_CLASS_NAMES;
if (raw) {
options |= PsiFormatUtilBase.SHOW_RAW_NON_TOP_TYPE;
parameterOptions |= PsiFormatUtilBase.SHOW_RAW_NON_TOP_TYPE;
}
String signature = PsiFormatUtil.formatMethod(method, PsiSubstitutor.EMPTY, options, parameterOptions, 999);
if (java8Format) {
signature = signature.replaceAll("\\(|\\)|, ", "-").replaceAll("\\[\\]", ":A");
}
return signature;
}
示例2: formatMethodSignature
public static String formatMethodSignature(PsiMethod method, boolean raw, boolean java8Format)
{
int options = PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_PARAMETERS;
int parameterOptions = PsiFormatUtilBase.SHOW_TYPE | PsiFormatUtilBase.SHOW_FQ_CLASS_NAMES;
if(raw)
{
options |= PsiFormatUtilBase.SHOW_RAW_NON_TOP_TYPE;
parameterOptions |= PsiFormatUtilBase.SHOW_RAW_NON_TOP_TYPE;
}
String signature = PsiFormatUtil.formatMethod(method, PsiSubstitutor.EMPTY, options, parameterOptions, 999);
if(java8Format)
{
signature = signature.replaceAll("\\(|\\)|, ", "-").replaceAll("\\[\\]", ":A");
}
return signature;
}
示例3: MethodCellRenderer
public MethodCellRenderer(boolean showMethodNames) {
this(showMethodNames, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_PARAMETERS);
}
示例4: MethodOrFunctionalExpressionCellRenderer
public MethodOrFunctionalExpressionCellRenderer(boolean showMethodNames) {
this(showMethodNames, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_PARAMETERS);
}
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:3,代碼來源:MethodOrFunctionalExpressionCellRenderer.java
示例5: MethodOrFunctionalExpressionCellRenderer
public MethodOrFunctionalExpressionCellRenderer(boolean showMethodNames)
{
this(showMethodNames, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_PARAMETERS);
}