本文整理汇总了Java中com.intellij.codeInsight.generation.GenerateEqualsHelper.isNestedArray方法的典型用法代码示例。如果您正苦于以下问题:Java GenerateEqualsHelper.isNestedArray方法的具体用法?Java GenerateEqualsHelper.isNestedArray怎么用?Java GenerateEqualsHelper.isNestedArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.codeInsight.generation.GenerateEqualsHelper
的用法示例。
在下文中一共展示了GenerateEqualsHelper.isNestedArray方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTooltip
import com.intellij.codeInsight.generation.GenerateEqualsHelper; //导入方法依赖的package包/类
@Override
public String getTooltip(MemberInfo memberInfo) {
if (checkForProblems(memberInfo) == OK) return null;
if (!(memberInfo.getMember() instanceof PsiField)) return CodeInsightBundle.message("generate.equals.hashcode.internal.error");
final PsiType type = ((PsiField)memberInfo.getMember()).getType();
if (GenerateEqualsHelper.isNestedArray(type)) {
return CodeInsightBundle .message("generate.equals.warning.equals.for.nested.arrays.not.supported");
}
if (GenerateEqualsHelper.isArrayOfObjects(type)) {
return CodeInsightBundle.message("generate.equals.warning.generated.equals.could.be.incorrect");
}
return null;
}
示例2: checkForProblems
import com.intellij.codeInsight.generation.GenerateEqualsHelper; //导入方法依赖的package包/类
@Override
public int checkForProblems(@NotNull MemberInfo member) {
if (!(member.getMember() instanceof PsiField)) return ERROR;
final PsiType type = ((PsiField)member.getMember()).getType();
if (GenerateEqualsHelper.isNestedArray(type)) return ERROR;
if (GenerateEqualsHelper.isArrayOfObjects(type)) return WARNING;
return OK;
}
示例3: isMemberEnabled
import com.intellij.codeInsight.generation.GenerateEqualsHelper; //导入方法依赖的package包/类
@Override
public boolean isMemberEnabled(MemberInfo member) {
if (!(member.getMember() instanceof PsiField)) return false;
final PsiType type = ((PsiField)member.getMember()).getType();
return !GenerateEqualsHelper.isNestedArray(type);
}