Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Run_Time
Class StackCodeWalker  view StackCodeWalker download StackCodeWalker.java

java.lang.Object
  extended byRun_Time.StackCodeWalker
All Implemented Interfaces:
java.util.Iterator

public class StackCodeWalker
extends java.lang.Object
implements java.util.Iterator

Version:
$Id: StackCodeWalker.java,v 1.6 2003/05/12 10:05:20 joewhaley Exp $

Field Summary
(package private)  Memory.StackAddress fp
           
(package private)  Memory.CodeAddress ip
           
static boolean TRACE
           
 
Constructor Summary
StackCodeWalker(Memory.CodeAddress ip, Memory.StackAddress fp)
           
 
Method Summary
 int getBCIndex()
           
 Clazz.jq_CompiledCode getCode()
           
 int getCodeOffset()
           
 Memory.StackAddress getFP()
           
 Memory.CodeAddress getIP()
           
 int getLineNum()
           
 Clazz.jq_Method getMethod()
           
 UTF.Utf8 getSourceFile()
           
 void gotoNext()
           
 boolean hasNext()
          Tests whether there are elements remaining in the collection.
 java.lang.Object next()
          Obtain the next element in the collection.
 void remove()
          Remove from the underlying collection the last element returned by next (optional operation).
static void stackDump(Memory.CodeAddress init_ip, Memory.StackAddress init_fp)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRACE

public static boolean TRACE

ip

Memory.CodeAddress ip

fp

Memory.StackAddress fp
Constructor Detail

StackCodeWalker

public StackCodeWalker(Memory.CodeAddress ip,
                       Memory.StackAddress fp)
Method Detail

getIP

public Memory.CodeAddress getIP()

getFP

public Memory.StackAddress getFP()

getCode

public Clazz.jq_CompiledCode getCode()

getMethod

public Clazz.jq_Method getMethod()

getCodeOffset

public int getCodeOffset()

getSourceFile

public UTF.Utf8 getSourceFile()

getBCIndex

public int getBCIndex()

getLineNum

public int getLineNum()

gotoNext

public void gotoNext()
              throws java.util.NoSuchElementException

hasNext

public boolean hasNext()
Description copied from interface: java.util.Iterator
Tests whether there are elements remaining in the collection. In other words, calling next() will not throw an exception.

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Description copied from interface: java.util.Iterator
Obtain the next element in the collection.

Specified by:
next in interface java.util.Iterator

remove

public void remove()
            throws java.lang.UnsupportedOperationException
Description copied from interface: java.util.Iterator
Remove from the underlying collection the last element returned by next (optional operation). This method can be called only once after each call to next(). It does not affect what will be returned by subsequent calls to next.

Specified by:
remove in interface java.util.Iterator

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


stackDump

public static void stackDump(Memory.CodeAddress init_ip,
                             Memory.StackAddress init_fp)