public static TraceFrame toTraceFrame ( final StackTraceElement element ) { TraceFrame . Builder builder = TraceFrame . newBuilder ( ) ; builder . codeFileName ( element . getFileName ( ) ) ; if ( 0 < element . getLineNumber ( ) ) { builder . lineNum ( element . getLineNumber ( ) ) ; } builder . method ( element . getClassName ( ) + "." + element . getMethodName ( ) ) ; return builder . build ( ) ; }
Converts a StackTraceElement to a TraceFrame