1
2
3
4
5 package org.codehaus.aspectwerkz.joinpoint.impl;
6
7 import org.codehaus.aspectwerkz.joinpoint.EnclosingStaticJoinPoint;
8 import org.codehaus.aspectwerkz.joinpoint.Signature;
9 import org.codehaus.aspectwerkz.joinpoint.management.JoinPointType;
10
11
12 /***
13 * Sole implementation of {@link org.codehaus.aspectwerkz.joinpoint.EnclosingStaticJoinPoint}.
14 * It provides access to the enclosing {@link org.codehaus.aspectwerkz.joinpoint.Signature}
15 * of the joinpoint.
16 *
17 * @author <a href="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
18 * @version $Revision: 1.2 $
19 */
20 public class EnclosingStaticJoinPointImpl implements EnclosingStaticJoinPoint {
21 private Signature m_signature;
22 private JoinPointType m_joinPointType;
23
24 public EnclosingStaticJoinPointImpl(Signature signature, JoinPointType jpType) {
25 m_signature = signature;
26 m_joinPointType = jpType;
27 }
28
29 /***
30 * Retrieve the {@link Signature} of the enclosing join point.
31 *
32 * @return a {@link Signature}
33 */
34 public Signature getSignature() {
35 return m_signature;
36 }
37
38 /***
39 * Return a join point type corresponding to the enclosing join point.
40 *
41 * @return one of {@link JoinPointType#CONSTRUCTOR_EXECUTION} or
42 * {@link JoinPointType#METHOD_EXECUTION} or {@link JoinPointType#STATIC_INITIALIZATION}.
43 */
44 public JoinPointType getType() {
45 return m_joinPointType;
46 }
47 }