1 11 12 13 package org.aspectj.runtime.reflect; 14 15 import java.lang.reflect.Modifier ; 16 17 import org.aspectj.lang.reflect.UnlockSignature; 18 19 class UnlockSignatureImpl extends SignatureImpl implements UnlockSignature { 20 private Class parameterType; 21 22 UnlockSignatureImpl(Class c) { 23 super(Modifier.STATIC, "unlock", c); 24 parameterType = c; 25 } 26 27 UnlockSignatureImpl(String stringRep) { 28 super(stringRep); 29 } 30 31 protected String createToString(StringMaker sm) { 32 if (parameterType == null) parameterType = extractType(3); 33 return "unlock("+sm.makeTypeName(parameterType)+")"; 34 } 35 36 public Class getParameterType() { 37 if (parameterType == null) parameterType = extractType(3); 38 return parameterType; 39 } 40 } 41 | Popular Tags |