1 13 14 15 package org.aspectj.runtime.reflect; 16 17 import org.aspectj.lang.reflect.CatchClauseSignature; 18 19 class CatchClauseSignatureImpl extends SignatureImpl implements CatchClauseSignature { 20 Class parameterType; 21 String parameterName; 22 23 CatchClauseSignatureImpl(Class declaringType, 24 Class parameterType, String parameterName) 25 { 26 super(0, "catch", declaringType); 27 this.parameterType = parameterType; 28 this.parameterName = parameterName; 29 } 30 31 CatchClauseSignatureImpl(String stringRep) { 32 super(stringRep); 33 } 34 35 public Class getParameterType() { 36 if (parameterType == null) parameterType = extractType(3); 37 return parameterType; 38 } 39 public String getParameterName() { 40 if (parameterName == null) parameterName = extractString(4); 41 return parameterName; 42 } 43 44 protected String createToString(StringMaker sm) { 45 return "catch(" + sm.makeTypeName(getParameterType()) + ")"; 46 } 47 } 48 | Popular Tags |