KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > prose > filter > Executions


1 //
2
// This file is part of the prose package.
3
//
4
// The contents of this file are subject to the Mozilla Public License
5
// Version 1.1 (the "License"); you may not use this file except in
6
// compliance with the License. You may obtain a copy of the License at
7
// http://www.mozilla.org/MPL/
8
//
9
// Software distributed under the License is distributed on an "AS IS" basis,
10
// WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11
// for the specific language governing rights and limitations under the
12
// License.
13
//
14
// The Original Code is prose.
15
//
16
// The Initial Developer of the Original Code is Andrei Popovici. Portions
17
// created by Andrei Popovici are Copyright (C) 2002 Andrei Popovici.
18
// All Rights Reserved.
19
//
20
// Contributor(s):
21
/*
22  * Created on Apr 17, 2003
23  *
24  * To change the template for this generated file go to
25  * Window>Preferences>Java>Code Generation>Code and Comments
26  */

27 package ch.ethz.prose.filter;
28
29 import ch.ethz.jvmai.JoinPointKinds;
30
31 /**
32  * @author popovici
33  *
34  * To change the template for this generated type comment go to
35  * Window>Preferences>Java>Code Generation>Code and Comments
36  */

37 public class Executions {
38
39     public static PointCutter after() {
40       AFTER1.setToString("Executions.after()");
41         return AFTER1;
42     }
43     public static PointCutter before() {
44       BEFORE1.setToString("Executions.before()");
45         return BEFORE1;
46     }
47       private static PointCutter BEFORE1 =
48       new ExecutionsAtMethodEntry(JoinPointKinds.MASK_METHOD_ENTRY_JP);
49       private static PointCutter AFTER1 =
50       new ExecutionsAtMethodEntry(JoinPointKinds.MASK_METHOD_EXIT_JP);
51 }
52
Popular Tags