net.sourceforge.acelogger.location.resolver
Class InternalCodeFrameResolver

java.lang.Object
  extended by net.sourceforge.acelogger.location.resolver.BaseCodeFrameResolver
      extended by net.sourceforge.acelogger.location.resolver.InternalCodeFrameResolver
All Implemented Interfaces:
CodeFrameResolver

public class InternalCodeFrameResolver
extends BaseCodeFrameResolver

An implementation of CodeFrameResolver that regresses a fixed number of calls.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
InternalCodeFrameResolver(int frameShift)
          Constructs a new InternalCodeFrameResolver for the supplied frame shift.
 
Method Summary
 StackTraceElement getCodeFrame(Thread currentThread)
          Generates information about the code-frame that originated a call.
 
Methods inherited from class net.sourceforge.acelogger.location.resolver.BaseCodeFrameResolver
getCodeFrame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalCodeFrameResolver

public InternalCodeFrameResolver(int frameShift)
Constructs a new InternalCodeFrameResolver for the supplied frame shift.

Parameters:
frameShift - The number of calls that should be retroceded.
Since:
1.0.0
Method Detail

getCodeFrame

public StackTraceElement getCodeFrame(Thread currentThread)
Generates information about the code-frame that originated a call.

Parameters:
currentThread - The thread that originated the call.
Returns:
The code frame in the thread that originated the call.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.