frysk.stack
Class FrameLevel

java.lang.Object
  extended by frysk.stack.FrameLevel

public class FrameLevel
extends Object

A dewey decimal like notation to identify frame and sub-levels.


Constructor Summary
FrameLevel()
          Inner most level.
FrameLevel(String string)
          Construct a frame level from the string.
 
Method Summary
 FrameLevel increment(int position)
          Increment POSITION by one (discarding any less significant positions).
 int position(int p)
          Return the N't position.
 int size()
          Return the "size"
 int[] toArray()
          Convert the level to an array.
 void toPrint(PrintWriter writer)
           
 String toString()
           
 FrameLevel truncate(int size)
          Truncate the level to SIZE fields.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FrameLevel

public FrameLevel()
Inner most level.


FrameLevel

public FrameLevel(String string)
Construct a frame level from the string.

Method Detail

increment

public FrameLevel increment(int position)
Increment POSITION by one (discarding any less significant positions).


truncate

public FrameLevel truncate(int size)
Truncate the level to SIZE fields. If SIZE is larger than the current size, zero extend (yea, ok that isn' exactly a normal truncate).


position

public int position(int p)
Return the N't position.


size

public int size()
Return the "size"


toArray

public int[] toArray()
Convert the level to an array.


toPrint

public void toPrint(PrintWriter writer)

toString

public String toString()
Overrides:
toString in class Object