KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > reflect > StaticInitializationInfoImpl


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.reflect;
5
6 import com.tc.aspectwerkz.transform.TransformationConstants;
7 import com.tc.backport175.bytecode.AnnotationElement;
8 import com.tc.asm.Opcodes;
9
10
11 /**
12  * Sole implementation of <CODE>StaticInitializationInfo</CODE>.
13  *
14  * @author <a HREF="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
15  */

16 public class StaticInitializationInfoImpl implements StaticInitializationInfo {
17   protected ClassInfo m_declaringType;
18
19   public StaticInitializationInfoImpl(final ClassInfo classInfo) {
20     m_declaringType = classInfo;
21   }
22
23   /**
24    * @see org.codehaus.aspectwerkz.reflect.MemberInfo#getDeclaringType()
25    */

26   public ClassInfo getDeclaringType() {
27     return m_declaringType;
28   }
29
30   /**
31    * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getName()
32    */

33   public String JavaDoc getName() {
34     return TransformationConstants.CLINIT_METHOD_NAME;
35   }
36
37   /**
38    * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getSignature()
39    */

40   public String JavaDoc getSignature() {
41     return TransformationConstants.CLINIT_METHOD_SIGNATURE;
42   }
43   
44   public String JavaDoc getGenericsSignature() {
45     return null;
46   }
47
48   /**
49    * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getModifiers()
50    */

51   public int getModifiers() {
52     return Opcodes.ACC_STATIC;
53   }
54
55   /**
56    * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getAnnotations()
57    */

58   public AnnotationElement.Annotation[] getAnnotations() {
59     return ClassInfo.EMPTY_ANNOTATION_ARRAY;
60   }
61
62 }
63
Popular Tags