1 /*
2 * $Id: Filter.java,v 1.2 2003/04/02 19:48:54 austvold Exp $
3 * Copyright 2003 OErjan Nygaard Austvold. All rights reserved.
4 */
5
6 package org.jdiseq;
7
8 /***
9 * This class implements a filter for JDI events.
10 * <p>Changelog:
11 * <pre>
12 * $Log: Filter.java,v $
13 * Revision 1.2 2003/04/02 19:48:54 austvold
14 * Minor updates. Mostly adaptation to new event and eventlistener name.
15 * General brush-up on javadoc comments.
16 * Removal of auto-added revision and date-of-commit members.
17 *
18 * Revision 1.1.1.1 2003/03/28 08:18:23 austvold
19 * Initial import.
20 *
21 * </pre>
22 *
23 * @author Ørjan Nygaard Austvold <austvold@acm.org>
24 * @version $Id: Filter.java,v 1.2 2003/04/02 19:48:54 austvold Exp $
25 */
26 class Filter {
27 private String triggerMethod;
28 private String[] classIncludes;
29 private String[] classExcludes;
30 private String methodIncludes;
31 private String methodExcludes;
32
33
34 /***
35 *
36 * @param triggerMethod reference to method(s) that triggerMethod calls.
37 * Regular expression allowed.
38 * @param classIncludes pattern of classes to include. Can start or end with '*'.
39 * @param classExcludes pattern of classes to exclude. Can start or end with '*'.
40 * @param methodIncludes pattern of methods to include. Regular expression allowed.
41 * @param methodExcludes pattern of methods to exclude. Regular expression allowed.
42 */
43 Filter(String triggerMethod, String[] classIncludes, String[] classExcludes,
44 String methodIncludes, String methodExcludes) {
45 this.triggerMethod = triggerMethod;
46 this.classIncludes = (classIncludes != null) ? classIncludes : new String[0];
47 this.classExcludes = (classExcludes != null) ? classExcludes : new String[0];
48 this.methodIncludes = methodIncludes;
49 this.methodExcludes = methodExcludes;
50 }
51
52
53 public String getTriggerMethod() {
54 return triggerMethod;
55 }
56
57 public String[] getClassIncludes() {
58 return classIncludes;
59 }
60
61 public String[] getClassExcludes() {
62 return classExcludes;
63 }
64
65 public String getMethodIncludes() {
66 return methodIncludes;
67 }
68
69 public String getMethodExcludes() {
70 return methodExcludes;
71 }
72 }
This page was automatically generated by Maven