mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more general constructor for ClassInstanceMethodFilter added
This commit is contained in:
@@ -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
|
||||
|
||||
+5
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user