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