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