utility/src/main/java/io/tracee/contextlogger/utility/GetterUtilities.java
public static String getFullQualifiedFieldName(final Class type, final Method method) {

        if (method != null) {

            // get the name of the type from passed type or method
            final String typeName;
            if (type != null) {
                typeName = type.getCanonicalName();
            }
            else {
                typeName = method.getDeclaringClass().getCanonicalName();
            }

            // get field name from getter method or method name for non getter methods
            final String fieldName;
            if (isGetterMethod(method.getName())) {
                fieldName = getFieldName(method.getName());
            }
            else {
                fieldName = method.getName();
            }

            return typeName + "." + fieldName;
        }
        else {
            return null;
        }

    }
public static String getFullQualifiedFieldName(final Class type, final Method method) {

        if (method != null) {

            // get the name of the type from passed type or method
            final String typeName;
            if (type != null) {
                typeName = type.getCanonicalName();
            }
            else {
                typeName = method.getDeclaringClass().getCanonicalName();
            }

            // get field name from getter method or method name for non getter methods
            final String fieldName;
            if (isGetterMethod(method.getName())) {
                fieldName = getFieldName(method.getName());
            }
            else {
                fieldName = method.getName();
            }

            return typeName + "." + fieldName;
        }
        else {
            return null;
        }

    }
public static String getFullQualifiedFieldName ( final Class type , final Method method ) { if ( method != null ) { // get the name of the type from passed type or method final String typeName ; if ( type != null ) { typeName = type . getCanonicalName ( ) ; } else { typeName = method . getDeclaringClass ( ) . getCanonicalName ( ) ; } // get field name from getter method or method name for non getter methods final String fieldName ; if ( isGetterMethod ( method . getName ( ) ) ) { fieldName = getFieldName ( method . getName ( ) ) ; } else { fieldName = method . getName ( ) ; } return typeName + "." + fieldName ; } else { return null ; } }
Gets the full qualified name of a field or non getter method.
Result has following format : "Full Qualified Classname"."field name for getter methods or method name for non getter methods".

@param method The method to be processed
@return
Gets the full qualified name of a field or non getter method . Result has following format : Full Qualified Classname . field name for getter methods or method name for non getter methods .