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