1 4 package com.tc.aspectwerkz.joinpoint.impl; 5 6 import com.tc.backport175.Annotation; 7 import com.tc.backport175.Annotations; 8 9 import com.tc.aspectwerkz.joinpoint.ConstructorSignature; 10 11 import java.lang.reflect.Constructor ; 12 13 18 public class ConstructorSignatureImpl implements ConstructorSignature { 19 private final Class m_declaringType; 20 21 private final Constructor m_constructor; 22 23 27 public ConstructorSignatureImpl(final Class declaringType, final Constructor constructor) { 28 m_declaringType = declaringType; 29 m_constructor = constructor; 30 } 31 32 37 public Constructor getConstructor() { 38 return m_constructor; 39 } 40 41 46 public Class getDeclaringType() { 47 return m_declaringType; 48 } 49 50 59 public int getModifiers() { 60 return m_constructor.getModifiers(); 61 } 62 63 68 public String getName() { 69 return m_constructor.getName(); 71 } 72 73 78 public Class [] getExceptionTypes() { 79 return m_constructor.getExceptionTypes(); 80 } 81 82 87 public Class [] getParameterTypes() { 88 return m_constructor.getParameterTypes(); 89 } 90 91 97 public Annotation getAnnotation(final Class annotationClass) { 98 return Annotations.getAnnotation(annotationClass, m_constructor); 99 } 100 101 106 public Annotation[] getAnnotations() { 107 return Annotations.getAnnotations(m_constructor); 108 } 109 110 115 public String toString() { 116 return m_constructor.toString(); 117 } 118 } | Popular Tags |