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