List of usage examples for org.aspectj.runtime.reflect Factory Factory
public Factory(String filename, Class lexicalClass)
From source file:se.crisp.codekvast.agent.lib.util.SignatureUtils.java
License:Open Source License
/** * Uses AspectJ for creating the same signature as AbstractCodekvastAspect. * * @param clazz The class containing the method * @param method The method to make a signature of * @return The same signature object as an AspectJ execution pointcut will provide in JoinPoint.getSignature(). Returns null unless the * method is not synthetic.// w w w . j a va 2 s . c om */ public static Signature makeSignature(Class clazz, Method method) { if (clazz == null || method.isSynthetic()) { return null; } return new Factory(null, clazz).makeMethodSig(method.getModifiers(), method.getName(), clazz, method.getParameterTypes(), null, method.getExceptionTypes(), method.getReturnType()); }
From source file:se.crisp.codekvast.agent.lib.util.SignatureUtils.java
License:Open Source License
/** * Uses AspectJ for creating the same signature as AbstractCodekvastAspect. * * @param clazz The class containing the method * @param constructor The constructor to make a signature of * @return The same signature object as an AspectJ execution pointcut will provide in JoinPoint.getSignature(). Returns null unless the * constructor is not synthetic./*from w w w . j a v a 2s. c om*/ */ private static Signature makeSignature(Class clazz, Constructor constructor) { if (clazz == null || constructor.isSynthetic()) { return null; } return new Factory(null, clazz).makeConstructorSig(constructor.getModifiers(), clazz, constructor.getParameterTypes(), null, constructor.getExceptionTypes()); }