javax.realtime
Class MemAreaStack

java.lang.Object
  |
  +--javax.realtime.MemAreaStack

class MemAreaStack
extends java.lang.Object

MemAreaStack can be used to create a tree of MemoryArea references to determine whether a ScopedMemory check fails. This is the same cactus stack that is used to determine which MemoryArea x RealtimeThread MemBlock to enter for the constructor of a .newArray'ed or a newInstance'd object.


Field Summary
 javax.realtime.MemoryArea entry
          A MemoryArea on the stack
 javax.realtime.MemAreaStack next
          The "next" pointer for the stack.
 javax.realtime.MemoryArea original
          A MemoryArea on the stack
 
Constructor Summary
MemAreaStack(javax.realtime.MemoryArea entry, javax.realtime.MemoryArea original, javax.realtime.MemAreaStack next)
          Push the MemoryArea on the cactus stack.
 
Method Summary
 javax.realtime.MemAreaStack first(javax.realtime.MemoryArea mem)
          Get the MemAreaStack of the first occurance of the MemoryArea mem, or null if it is not found.
static javax.realtime.MemAreaStack POP(javax.realtime.MemAreaStack top)
           
static javax.realtime.MemAreaStack PUSH(javax.realtime.MemoryArea entry, javax.realtime.MemoryArea original, javax.realtime.MemAreaStack next)
           
 java.lang.String toString()
          Dump a description of each MemoryArea on the stack.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

entry

public javax.realtime.MemoryArea entry
A MemoryArea on the stack


original

public javax.realtime.MemoryArea original
A MemoryArea on the stack


next

public javax.realtime.MemAreaStack next
The "next" pointer for the stack.

Constructor Detail

MemAreaStack

public MemAreaStack(javax.realtime.MemoryArea entry,
                    javax.realtime.MemoryArea original,
                    javax.realtime.MemAreaStack next)
Push the MemoryArea on the cactus stack.

Method Detail

PUSH

public static javax.realtime.MemAreaStack PUSH(javax.realtime.MemoryArea entry,
                                               javax.realtime.MemoryArea original,
                                               javax.realtime.MemAreaStack next)

POP

public static javax.realtime.MemAreaStack POP(javax.realtime.MemAreaStack top)

first

public javax.realtime.MemAreaStack first(javax.realtime.MemoryArea mem)
Get the MemAreaStack of the first occurance of the MemoryArea mem, or null if it is not found.


toString

public java.lang.String toString()
Dump a description of each MemoryArea on the stack.

Overrides:
toString in class java.lang.Object