1 8 package org.codehaus.aspectwerkz.joinpoint.impl; 9 10 import org.codehaus.aspectwerkz.joinpoint.Signature; 11 import org.codehaus.aspectwerkz.transform.TransformationConstants; 12 13 import java.lang.reflect.Modifier ; 14 15 20 public class StaticInitializerSignatureImpl implements Signature { 21 22 private final static int CLINIT_MODIFIERS = Modifier.STATIC; 24 private final Class m_declaringType; 25 26 public StaticInitializerSignatureImpl(Class declaringType) { 27 m_declaringType = declaringType; 28 } 29 30 public Class getDeclaringType() { 31 return m_declaringType; 32 } 33 34 public int getModifiers() { 35 return CLINIT_MODIFIERS; 36 } 37 38 public String getName() { 39 return TransformationConstants.CLINIT_METHOD_NAME; 40 } 41 42 public String toString() { 43 StringBuffer sb = new StringBuffer (); 44 sb.append(m_declaringType.getName()); 45 sb.append('.'); 46 sb.append(TransformationConstants.CLINIT_METHOD_NAME); 47 return sb.toString(); 48 } 49 } 50 | Popular Tags |