org.apache.commons.javaflow.bytecode
Class Stack

java.lang.Object
  extended by org.apache.commons.javaflow.bytecode.Stack
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
StackRecorder

public class Stack
extends java.lang.Object
implements java.io.Serializable

Stack to store the frame information along the invocation trace.

Version:
CVS $Id: Stack.java 480487 2006-11-29 08:54:42Z bayard $
Author:
Torsten Curdt, Stephan Michels
See Also:
Serialized Form

Field Summary
protected  java.lang.Runnable runnable
           
 
Constructor Summary
Stack(java.lang.Runnable pRunnable)
           
Stack(Stack pParent)
           
 
Method Summary
 boolean hasDouble()
           
 boolean hasFloat()
           
 boolean hasInt()
           
 boolean hasLong()
           
 boolean hasObject()
           
 boolean hasReference()
           
 boolean isEmpty()
           
 boolean isSerializable()
           
 double popDouble()
           
 float popFloat()
           
 int popInt()
           
 long popLong()
           
 java.lang.Object popObject()
           
 java.lang.Object popReference()
           
 void pushDouble(double d)
           
 void pushFloat(float f)
           
 void pushInt(int i)
           
 void pushLong(long l)
           
 void pushObject(java.lang.Object o)
           
 void pushReference(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

runnable

protected java.lang.Runnable runnable
Constructor Detail

Stack

public Stack(java.lang.Runnable pRunnable)

Stack

public Stack(Stack pParent)
Method Detail

hasDouble

public boolean hasDouble()

popDouble

public double popDouble()

hasFloat

public boolean hasFloat()

popFloat

public float popFloat()

hasInt

public boolean hasInt()

popInt

public int popInt()

hasLong

public boolean hasLong()

popLong

public long popLong()

hasObject

public boolean hasObject()

popObject

public java.lang.Object popObject()

hasReference

public boolean hasReference()

popReference

public java.lang.Object popReference()

pushDouble

public void pushDouble(double d)

pushFloat

public void pushFloat(float f)

pushInt

public void pushInt(int i)

pushLong

public void pushLong(long l)

pushObject

public void pushObject(java.lang.Object o)

pushReference

public void pushReference(java.lang.Object o)

isSerializable

public boolean isSerializable()

isEmpty

public boolean isEmpty()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2004-2008 The Apache Software Foundation. All Rights Reserved.