1 4 package com.tc.aspectwerkz.joinpoint.impl; 5 6 import com.tc.aspectwerkz.joinpoint.CatchClauseSignature; 7 import com.tc.aspectwerkz.joinpoint.Signature; 8 9 14 public class CatchClauseSignatureImpl implements CatchClauseSignature { 15 16 private Class m_exceptionType; 17 18 23 public CatchClauseSignatureImpl(final Class exceptionClass) { 24 m_exceptionType = exceptionClass; 25 } 26 27 32 public Class getDeclaringType() { 33 return m_exceptionType; 34 } 35 36 45 public int getModifiers() { 46 return m_exceptionType.getModifiers(); 47 } 48 49 54 public String getName() { 55 return m_exceptionType.getName(); 56 } 57 58 63 public Class getParameterType() { 64 return m_exceptionType; 65 } 66 67 72 public String toString() { 73 return getName(); 74 } 75 76 81 public Signature newInstance() { 82 return new CatchClauseSignatureImpl(m_exceptionType); 83 } 84 } | Popular Tags |