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.reflect;
08:
09: import java.util.Collections;
10: import java.util.List;
11:
12: import org.codehaus.aspectwerkz.transform.TransformationConstants;
13: import org.objectweb.asm.Constants;
14:
15: /**
16: * Sole implementation of <CODE>StaticInitializationInfo</CODE>.
17: *
18: * @author <a href="mailto:the_mindstorm@evolva.ro">Alex Popescu</a>
19: */
20: public class StaticInitializationInfoImpl implements
21: StaticInitializationInfo {
22: protected ClassInfo m_declaringType;
23:
24: public StaticInitializationInfoImpl(final ClassInfo classInfo) {
25: m_declaringType = classInfo;
26: }
27:
28: /**
29: * @see org.codehaus.aspectwerkz.reflect.MemberInfo#getDeclaringType()
30: */
31: public ClassInfo getDeclaringType() {
32: return m_declaringType;
33: }
34:
35: /**
36: * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getName()
37: */
38: public String getName() {
39: return TransformationConstants.CLINIT_METHOD_NAME;
40: }
41:
42: /**
43: * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getSignature()
44: */
45: public String getSignature() {
46: return TransformationConstants.CLINIT_METHOD_SIGNATURE;
47: }
48:
49: /**
50: * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getModifiers()
51: */
52: public int getModifiers() {
53: return Constants.ACC_STATIC;
54: }
55:
56: /**
57: * @see org.codehaus.aspectwerkz.reflect.ReflectionInfo#getAnnotations()
58: */
59: public List getAnnotations() {
60: return Collections.EMPTY_LIST;
61: }
62:
63: }
|