private static String getCurrentMethodNameFqn(final int offset) { final String currentClassName = getCurrentClassName(offset + 1); final String currentMethodName = (_m != null) ? getCurrentMethodName_Main(offset + 1) : getCurrentMethodName_Backup(offset + 1); return currentClassName + "." + currentMethodName; }
public static String getCurrentFileNameFqn() { final String CurrentMethodNameFqn = getCurrentMethodNameFqn(1); final String currentFileName = getCurrentFileName(1); return CurrentMethodNameFqn + "(" + currentFileName + ")"; }
private static String getInvokingMethodNameFqn(final int offset) { final String invokingClassName = getInvokingClassName(offset + 1); final String invokingMethodName = getInvokingMethodName(offset + 1); return invokingClassName + "." + invokingMethodName; }
/** * re-uses getCurrentMethodName() with desired index * * @return same as getCurrentMethodName() but shorten as the given offset */ private static String getInvokingMethodName(final int offset) { return (_m != null) ? getCurrentMethodName_Main(offset + 1) : getCurrentMethodName_Backup(offset + 1); }
public static String getInvokingFileNameFqn() { final String invokingMethodNameFqn = getInvokingMethodNameFqn(2); final String invokingFileName = getInvokingFileName(2); return invokingMethodNameFqn + "(" + invokingFileName + ")"; } }
public static String getCurrentClassName() { return getCurrentClassName(1); // making additional overloaded method call requires +1 offset }
private static String getInvokingFileName(final int offset) { return getCurrentFileName(offset + 1); // re-uses getCurrentFileName() with desired index }
public static String getInvokingMethodName() { return getInvokingMethodName(2); }
public static String getCurrentMethodNameFqn() { return getCurrentMethodNameFqn(1); }
public static String getInvokingMethodNameFqn() { return getInvokingMethodNameFqn(2); }
public static String getInvokingClassName() { return getInvokingClassName(2); }
public static String getInvokingFileName() { return getInvokingFileName(2); }
public static String getCurrentMethodName() { // making additional overloaded method call requires +1 offset return (_m != null) ? getCurrentMethodName_Main(1) : getCurrentMethodName_Backup(1); }
private static String getInvokingClassName(final int offset) { return getCurrentClassName(offset + 1); // re-uses getCurrentClassName() with desired index }
public static String getCurrentFileName() { return getCurrentFileName(1); // making additional overloaded method call requires +1 offset }