Package net.zero.smarttrace.core.data

Examples of net.zero.smarttrace.core.data.EStackFrame


      }
    }
 
  private EStackFrameLocation getStackFrameLocation(EThread eThread, List<StackFrame> frames, int index)
    {
    EStackFrame eStackFrame=null;
   
    /*
    if(actualStackFrameLocation4Thread.get(eThread.getName())!=null &&
      actualStackFrameLocation4Thread.get(eThread.getName()).getStackFrame().getDepth()==frames.size()-index)
      {
      if(actualStackFrameLocation4Thread.get(eThread.getName()).getLineNumber()==frames.get(index).location().lineNumber())
        return actualStackFrameLocation4Thread.get(eThread.getName());
     
      eStackFrame=actualStackFrameLocation4Thread.get(eThread.getName()).getStackFrame();
      }
    */
    if(getLast(eThread)!=null &&
        getLast(eThread).getStackFrame().getDepth()==frames.size()-index)
      {
      if(getLast(eThread).getLineNumber()==frames.get(index).location().lineNumber())
        return getLast(eThread);
     
      eStackFrame=getLast(eThread).getStackFrame();
      }
   
    StackFrame stackFrame = frames.get(index);
   
    EStackFrameLocation ret=new EStackFrameLocation();
    ret.setStackFrame(eStackFrame);
    ret.setLineNumber(stackFrame.location().lineNumber());
   
    if(eStackFrame==null)
      {
      eStackFrame=new EStackFrame();
      ret.setStackFrame(eStackFrame);
      eStackFrame.setThread(eThread);
      eStackFrame.setDepth(frames.size()-index);
      eStackFrame.setMethod(createQueryMethod(stackFrame.location().method()));
     
      if(stackFrame.thisObject()!=null)
        eStackFrame.setThisObject(createQueryObjectReference(stackFrame.thisObject()));
     
      index++;
      if(index<frames.size())
        {
        eStackFrame.setPreviousStackFrameLocation(getStackFrameLocation(eThread, frames, index));
        }
     
      try
        {
        eStackFrame.setSourceName(stackFrame.location().sourceName());
        }
      catch (AbsentInformationException e)
        {
        System.out.println(e.getClass().getName() );
        }
View Full Code Here

TOP

Related Classes of net.zero.smarttrace.core.data.EStackFrame

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.