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.reflect;
05:
06: import com.tc.aspectwerkz.transform.TransformationConstants;
07: import com.tc.backport175.bytecode.AnnotationElement;
08: import com.tc.asm.Opcodes;
09:
10: /**
11: * Sole implementation of <CODE>StaticInitializationInfo</CODE>.
12: *
13: * @author <a href="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
14: */
15: public class StaticInitializationInfoImpl implements
16: 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 getName() {
34: return TransformationConstants.CLINIT_METHOD_NAME;
35: }
36:
37: /**
38: * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getSignature()
39: */
40: public String getSignature() {
41: return TransformationConstants.CLINIT_METHOD_SIGNATURE;
42: }
43:
44: public String 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: }
|