01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.aspectwerkz.joinpoint.impl;
05:
06: import com.tc.aspectwerkz.joinpoint.EnclosingStaticJoinPoint;
07: import com.tc.aspectwerkz.joinpoint.Signature;
08: import com.tc.aspectwerkz.joinpoint.management.JoinPointType;
09:
10: /**
11: * Sole implementation of {@link com.tc.aspectwerkz.joinpoint.EnclosingStaticJoinPoint}.
12: * It provides access to the enclosing {@link com.tc.aspectwerkz.joinpoint.Signature}
13: * of the joinpoint.
14: *
15: * @author <a href="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
16: */
17: public class EnclosingStaticJoinPointImpl implements
18: EnclosingStaticJoinPoint {
19: private Signature m_signature;
20: private JoinPointType m_joinPointType;
21:
22: public EnclosingStaticJoinPointImpl(Signature signature,
23: JoinPointType jpType) {
24: m_signature = signature;
25: m_joinPointType = jpType;
26: }
27:
28: /**
29: * Retrieve the {@link Signature} of the enclosing join point.
30: *
31: * @return a {@link Signature}
32: */
33: public Signature getSignature() {
34: return m_signature;
35: }
36:
37: /**
38: * Return a join point type corresponding to the enclosing join point.
39: *
40: * @return one of {@link JoinPointType#CONSTRUCTOR_EXECUTION} or
41: * {@link JoinPointType#METHOD_EXECUTION} or {@link JoinPointType#STATIC_INITIALIZATION}.
42: */
43: public JoinPointType getType() {
44: return m_joinPointType;
45: }
46: }
|