本文整理汇总了Java中com.intellij.refactoring.classMembers.ANDCombinedMemberInfoModel类的典型用法代码示例。如果您正苦于以下问题:Java ANDCombinedMemberInfoModel类的具体用法?Java ANDCombinedMemberInfoModel怎么用?Java ANDCombinedMemberInfoModel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ANDCombinedMemberInfoModel类属于com.intellij.refactoring.classMembers包,在下文中一共展示了ANDCombinedMemberInfoModel类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: UsesAndInterfacesDependencyMemberInfoModel
import com.intellij.refactoring.classMembers.ANDCombinedMemberInfoModel; //导入依赖的package包/类
public UsesAndInterfacesDependencyMemberInfoModel(PsiClass aClass, @Nullable PsiClass superClass, boolean recursive,
@NotNull final InterfaceContainmentVerifier interfaceContainmentVerifier) {
super(new ANDCombinedMemberInfoModel<T, M>(
new UsesDependencyMemberInfoModel<T, PsiClass, M>(aClass, superClass, recursive) {
public int checkForProblems(@NotNull M memberInfo) {
final int problem = super.checkForProblems(memberInfo);
if (problem == OK) return OK;
final PsiMember member = memberInfo.getMember();
if (member instanceof PsiMethod) {
if (interfaceContainmentVerifier.checkedInterfacesContain((PsiMethod)member)) return OK;
}
return problem;
}
},
new InterfaceDependencyMemberInfoModel<T, M>(aClass))
);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:UsesAndInterfacesDependencyMemberInfoModel.java
示例2: UsesAndInterfacesDependencyMemberInfoModel
import com.intellij.refactoring.classMembers.ANDCombinedMemberInfoModel; //导入依赖的package包/类
public UsesAndInterfacesDependencyMemberInfoModel(PsiClass aClass, @Nullable PsiClass superClass, boolean recursive,
@NotNull final InterfaceContainmentVerifier interfaceContainmentVerifier) {
super(new ANDCombinedMemberInfoModel<PsiMember, MemberInfo>(
new UsesDependencyMemberInfoModel<PsiMember, PsiClass, MemberInfo>(aClass, superClass, recursive) {
public int checkForProblems(@NotNull MemberInfo memberInfo) {
final int problem = super.checkForProblems(memberInfo);
if (problem == OK) return OK;
final PsiMember member = memberInfo.getMember();
if (member instanceof PsiMethod) {
if (interfaceContainmentVerifier.checkedInterfacesContain((PsiMethod)member)) return OK;
}
return problem;
}
},
new InterfaceDependencyMemberInfoModel(aClass))
);
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:18,代码来源:UsesAndInterfacesDependencyMemberInfoModel.java
示例3: UsesAndInterfacesDependencyMemberInfoModel
import com.intellij.refactoring.classMembers.ANDCombinedMemberInfoModel; //导入依赖的package包/类
public UsesAndInterfacesDependencyMemberInfoModel(PsiClass aClass,
@Nullable PsiClass superClass,
boolean recursive,
@NotNull final InterfaceContainmentVerifier interfaceContainmentVerifier)
{
super(new ANDCombinedMemberInfoModel<T, M>(new UsesDependencyMemberInfoModel<T, PsiClass, M>(aClass,
superClass, recursive)
{
@Override
public int checkForProblems(@NotNull M memberInfo)
{
final int problem = super.checkForProblems(memberInfo);
if(problem == OK)
{
return OK;
}
final PsiMember member = memberInfo.getMember();
if(member instanceof PsiMethod)
{
if(interfaceContainmentVerifier.checkedInterfacesContain((PsiMethod) member))
{
return OK;
}
}
return problem;
}
}, new InterfaceDependencyMemberInfoModel<T, M>(aClass)));
}
示例4: setSuperClass
import com.intellij.refactoring.classMembers.ANDCombinedMemberInfoModel; //导入依赖的package包/类
public void setSuperClass(PsiClass superClass) {
((UsesDependencyMemberInfoModel) ((ANDCombinedMemberInfoModel) getDelegatingTarget()).getModel1()).setSuperClass(superClass);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:UsesAndInterfacesDependencyMemberInfoModel.java
示例5: setSuperClass
import com.intellij.refactoring.classMembers.ANDCombinedMemberInfoModel; //导入依赖的package包/类
public void setSuperClass(PsiClass superClass)
{
((UsesDependencyMemberInfoModel) ((ANDCombinedMemberInfoModel) getDelegatingTarget()).getModel1())
.setSuperClass(superClass);
}