1 8 package org.codehaus.aspectwerkz.joinpoint.impl; 9 10 import org.codehaus.aspectwerkz.joinpoint.CatchClauseSignature; 11 import org.codehaus.aspectwerkz.joinpoint.Signature; 12 13 18 public class CatchClauseSignatureImpl implements CatchClauseSignature { 19 20 private Class m_exceptionType; 21 22 27 public CatchClauseSignatureImpl(final Class exceptionClass) { 28 m_exceptionType = exceptionClass; 29 } 30 31 36 public Class getDeclaringType() { 37 return m_exceptionType; 38 } 39 40 49 public int getModifiers() { 50 return m_exceptionType.getModifiers(); 51 } 52 53 58 public String getName() { 59 return m_exceptionType.getName(); 60 } 61 62 68 public Class getParameterType() { 69 return m_exceptionType; 70 } 71 72 77 public String toString() { 78 return getName(); 79 } 80 81 86 public Signature newInstance() { 87 return new CatchClauseSignatureImpl(m_exceptionType); 88 } 89 } | Popular Tags |