1 8 package org.codehaus.aspectwerkz.joinpoint.impl; 9 10 import org.codehaus.aspectwerkz.annotation.Annotation; 11 import org.codehaus.aspectwerkz.annotation.Annotations; 12 import org.codehaus.aspectwerkz.joinpoint.ConstructorSignature; 13 14 import java.lang.reflect.Constructor ; 15 import java.util.List ; 16 17 22 public class ConstructorSignatureImpl implements ConstructorSignature { 23 private final Class m_declaringType; 24 25 private final Constructor m_constructor; 26 27 31 public ConstructorSignatureImpl(final Class declaringType, final Constructor constructor) { 32 m_declaringType = declaringType; 33 m_constructor = constructor; 34 } 35 36 41 public Constructor getConstructor() { 42 return m_constructor; 43 } 44 45 50 public Class getDeclaringType() { 51 return m_declaringType; 52 } 53 54 63 public int getModifiers() { 64 return m_constructor.getModifiers(); 65 } 66 67 72 public String getName() { 73 return m_constructor.getName(); 75 } 76 77 82 public Class [] getExceptionTypes() { 83 return m_constructor.getExceptionTypes(); 84 } 85 86 91 public Class [] getParameterTypes() { 92 return m_constructor.getParameterTypes(); 93 } 94 95 101 public Annotation getAnnotation(final String annotationName) { 102 return Annotations.getAnnotation(annotationName, m_constructor); 103 } 104 105 111 public List getAnnotations(final String annotationName) { 112 return Annotations.getAnnotations(annotationName, m_constructor); 113 } 114 115 121 public List getAnnotationInfos() { 122 return Annotations.getAnnotationInfos(m_constructor); 123 } 124 125 130 public String toString() { 131 return m_constructor.toString(); 132 } 133 } | Popular Tags |