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.Rtti;
07:
08: /**
09: * Implementation of static initialization RTTI.
10: *
11: * @author <a href="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
12: */
13: public class StaticInitializationRttiImpl implements Rtti {
14: private final StaticInitializerSignatureImpl m_signature;
15:
16: /**
17: * Creates a new staticinitialization RTTI
18: *
19: * @param signature the underlying <CODE>StaticInitializerSignatureImpl</CODE>
20: */
21: public StaticInitializationRttiImpl(
22: final StaticInitializerSignatureImpl signature) {
23: m_signature = signature;
24: }
25:
26: /**
27: * @see com.tc.aspectwerkz.joinpoint.Rtti#getName()
28: */
29: public String getName() {
30: return m_signature.getName();
31: }
32:
33: /**
34: * @see com.tc.aspectwerkz.joinpoint.Rtti#getTarget()
35: */
36: public Object getTarget() {
37: return null;
38: }
39:
40: /**
41: * @see com.tc.aspectwerkz.joinpoint.Rtti#getThis()
42: */
43: public Object getThis() {
44: return null;
45: }
46:
47: /**
48: * @see com.tc.aspectwerkz.joinpoint.Rtti#getDeclaringType()
49: */
50: public Class getDeclaringType() {
51: return m_signature.getDeclaringType();
52: }
53:
54: /**
55: * @see com.tc.aspectwerkz.joinpoint.Rtti#getModifiers()
56: */
57: public int getModifiers() {
58: return m_signature.getModifiers();
59: }
60:
61: /**
62: * @see com.tc.aspectwerkz.joinpoint.Rtti#cloneFor(java.lang.Object, java.lang.Object)
63: */
64: public Rtti cloneFor(Object targetInstance, Object this Instance) {
65: return new StaticInitializationRttiImpl(m_signature);
66: }
67:
68: }
|