public void printC(Object object) {
        StackTraceElement[] stackTraceElements = StackTraceHelper.getStackTrace();
        StackTraceElement stackTraceElement = stackTraceElements[2]; // 调用本类的对象类型堆栈
        StringBuilder builder = new StringBuilder();
        builder.append(" ------------------------------------------------------------ ");
        builder.append(StringHelper.line());
        builder.append(StackTraceHelper
                .buildStackTrace(new StackTraceElement[]{stackTraceElement}));
        builder.append("    ");
        if (object == null) {
            builder.append("<null>");
        } else {
            builder.append(object.getClass().getSimpleName());
            builder.append(" =============== ");
            String content = buildObjectToString(object);
            builder.append(buildContent(content));
        }
        builder.append(StringHelper.line());
        builder.append(" ------------------------------------------------------------ ");
        System.out.println(builder.toString());
    }
public void printC(Object object) {
        StackTraceElement[] stackTraceElements = StackTraceHelper.getStackTrace();
        StackTraceElement stackTraceElement = stackTraceElements[2]; 
        StringBuilder builder = new StringBuilder();
        builder.append(" ------------------------------------------------------------ ");
        builder.append(StringHelper.line());
        builder.append(StackTraceHelper
                .buildStackTrace(new StackTraceElement[]{stackTraceElement}));
        builder.append("    ");
        if (object == null) {
            builder.append("<null>");
        } else {
            builder.append(object.getClass().getSimpleName());
            builder.append(" =============== ");
            String content = buildObjectToString(object);
            builder.append(buildContent(content));
        }
        builder.append(StringHelper.line());
        builder.append(" ------------------------------------------------------------ ");
        System.out.println(builder.toString());
    }
public void printC ( Object object ) { StackTraceElement [ ] stackTraceElements = StackTraceHelper . getStackTrace ( ) ; StackTraceElement stackTraceElement = stackTraceElements [ 2 ] ; // 调用本类的对象类型堆栈 StringBuilder builder = new StringBuilder ( ) ; builder . append ( " ------------------------------------------------------------ " ) ; builder . append ( StringHelper . line ( ) ) ; builder . append ( StackTraceHelper . buildStackTrace ( new StackTraceElement [ ] { stackTraceElement } ) ) ; builder . append ( "    " ) ; if ( object == null ) { builder . append ( "<null>" ) ; } else { builder . append ( object . getClass ( ) . getSimpleName ( ) ) ; builder . append ( " =============== " ) ; String content = buildObjectToString ( object ) ; builder . append ( buildContent ( content ) ) ; } builder . append ( StringHelper . line ( ) ) ; builder . append ( " ------------------------------------------------------------ " ) ; System . out . println ( builder . toString ( ) ) ; }
打印对象同时加入注释

@param object
打印对象同时加入注释