KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > aspectwerkz > joinpoint > impl > StaticInitializationRttiImpl


1 /**************************************************************************************
2  * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of the LGPL license *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  **************************************************************************************/

8 package org.codehaus.aspectwerkz.joinpoint.impl;
9
10 import org.codehaus.aspectwerkz.joinpoint.Rtti;
11
12
13 /**
14  * Implementation of static initialization RTTI.
15  *
16  * @author <a HREF="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
17  */

18 public class StaticInitializationRttiImpl implements Rtti {
19     private final StaticInitializerSignatureImpl m_signature;
20     
21     /**
22      * Creates a new staticinitialization RTTI
23      *
24      * @param signature the underlying <CODE>StaticInitializerSignatureImpl</CODE>
25      */

26     public StaticInitializationRttiImpl(final StaticInitializerSignatureImpl signature) {
27         m_signature = signature;
28     }
29     
30     /**
31      * @see org.codehaus.aspectwerkz.joinpoint.Rtti#getName()
32      */

33     public String JavaDoc getName() {
34         return m_signature.getName();
35     }
36
37     /**
38      * @see org.codehaus.aspectwerkz.joinpoint.Rtti#getTarget()
39      */

40     public Object JavaDoc getTarget() {
41         return null;
42     }
43
44     /**
45      * @see org.codehaus.aspectwerkz.joinpoint.Rtti#getThis()
46      */

47     public Object JavaDoc getThis() {
48         return null;
49     }
50
51     /**
52      * @see org.codehaus.aspectwerkz.joinpoint.Rtti#getDeclaringType()
53      */

54     public Class JavaDoc getDeclaringType() {
55         return m_signature.getDeclaringType();
56     }
57
58     /**
59      * @see org.codehaus.aspectwerkz.joinpoint.Rtti#getModifiers()
60      */

61     public int getModifiers() {
62         return m_signature.getModifiers();
63     }
64
65     /**
66      * @see org.codehaus.aspectwerkz.joinpoint.Rtti#cloneFor(java.lang.Object, java.lang.Object)
67      */

68     public Rtti cloneFor(Object JavaDoc targetInstance, Object JavaDoc thisInstance) {
69         return new StaticInitializationRttiImpl(m_signature);
70     }
71
72 }
73
Popular Tags