01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.joinpoint;
08:
09: /**
10: * Implements the join point concept, e.g. defines a well defined point in the program flow.
11: * <p/>
12: * Provides access to runtime type information (RTTI), is therefore significantly <b>slower</b>
13: * than the usage of the {@link org.codehaus.aspectwerkz.joinpoint.StaticJoinPoint} interface.
14: *
15: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
16: */
17: public interface JoinPoint extends StaticJoinPoint {
18:
19: /**
20: * Returns the callee instance.
21: *
22: * @return the callee instance
23: */
24: Object getCallee();
25:
26: /**
27: * Returns the caller instance.
28: *
29: * @return the caller instance
30: */
31: Object getCaller();
32:
33: /**
34: * Returns the 'this' instance (the one currently executing).
35: *
36: * @return 'this'
37: */
38: Object getThis();
39:
40: /**
41: * Returns the target instance. If the join point is executing in a static context it returns null.
42: *
43: * @return the target instance
44: */
45: Object getTarget();
46:
47: /**
48: * Returns the JoinPoint RTTI
49: *
50: * @return the Rtti
51: */
52: Rtti getRtti();
53: }
|