more general constructor for ClassInstanceMethodFilter added

This commit is contained in:
Nikolay.Tropin
2015-09-25 12:48:43 +03:00
parent 3e771d4058
commit fc8834c739
2 changed files with 12 additions and 5 deletions
@@ -30,13 +30,16 @@ import com.sun.jdi.request.EventRequest;
* @author egor
*/
public class ClassInstanceMethodFilter extends ConstructorStepMethodFilter implements ActionMethodFilter {
private final PsiMethod myPsiMethod;
private final AnonymousClassMethodFilter myMethodFilter;
private final BreakpointStepMethodFilter myMethodFilter;
public ClassInstanceMethodFilter(PsiMethod psiMethod, Range<Integer> lines) {
super(psiMethod.getContainingClass(), lines);
myPsiMethod = psiMethod;
myMethodFilter = new AnonymousClassMethodFilter(myPsiMethod, getCallingExpressionLines());
myMethodFilter = new AnonymousClassMethodFilter(psiMethod, getCallingExpressionLines());
}
public ClassInstanceMethodFilter(JVMName classJvmName, BreakpointStepMethodFilter methodFilter, Range<Integer> lines) {
super(classJvmName, lines);
myMethodFilter = methodFilter;
}
@Override
@@ -22,7 +22,11 @@ import com.intellij.util.Range;
* @author egor
*/
public class ConstructorStepMethodFilter extends BasicStepMethodFilter {
public ConstructorStepMethodFilter(JVMName classJvmName, Range<Integer> callingExpressionLines) {
super(classJvmName, JVMNameUtil.CONSTRUCTOR_NAME, null, callingExpressionLines);
}
public ConstructorStepMethodFilter(PsiClass psiClass, Range<Integer> callingExpressionLines) {
super(JVMNameUtil.getJVMQualifiedName(psiClass), JVMNameUtil.CONSTRUCTOR_NAME, null, callingExpressionLines);
this(JVMNameUtil.getJVMQualifiedName(psiClass), callingExpressionLines);
}
}