/** * Gets the caller of a constructor. * * @param clazz * the clazz * @return the caller of constructor */ public static StackTraceElement getCallerOfConstructor(final Class<?> clazz) { return getCallerOfConstructor(clazz, new Pattern[0]); }
private static StackTraceElement getCallerOf(final ConstructorSignature signature, final Pattern... excluded) { return getCallerOfConstructor(signature.getDeclaringType(), excluded); }