本文整理汇总了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);
}