Here you can find the source of printStackTraceElement(StackTraceElement element, StringBuilder buffer)
Parameter | Description |
---|---|
element | el elemento a pintar |
buffer | el bufer donde pintar |
public static void printStackTraceElement(StackTraceElement element, StringBuilder buffer)
//package com.java2s; //License from project: Apache License public class Main { /**/*from w w w. ja va 2s .c o m*/ * IMprime un stacktrace element. * @param element el elemento a pintar * @param buffer el bufer donde pintar */ public static void printStackTraceElement(StackTraceElement element, StringBuilder buffer) { buffer.append(element.getClassName()); buffer.append('.'); buffer.append(element.getMethodName()); buffer.append('('); buffer.append(element.getFileName()); if (element.getLineNumber() > 0) { buffer.append(':'); buffer.append(element.getLineNumber()); } buffer.append(')'); } }