com.sun.tools.javac.jvm
Class Items.StackItem

java.lang.Object
  extended by com.sun.tools.javac.jvm.Items.Item
      extended by com.sun.tools.javac.jvm.Items.StackItem
Enclosing class:
Items

 class Items.StackItem
extends Items.Item

An item representing a value on stack.


Field Summary
 
Fields inherited from class com.sun.tools.javac.jvm.Items.Item
typecode
 
Constructor Summary
Items.StackItem(int typecode)
           
 
Method Summary
(package private)  void drop()
          Generate code to avoid having to use this item.
(package private)  void duplicate()
          Generate code to use this item twice.
(package private)  Items.Item load()
          Generate code to load this item onto stack.
(package private)  void stash(int toscode)
          Generate code to stash a copy of top of stack - of typecode toscode - under this item.
 java.lang.String toString()
           
(package private)  int width()
          Return the width of this item on stack as a number of words.
 
Methods inherited from class com.sun.tools.javac.jvm.Items.Item
coerce, coerce, invoke, mkCond, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Items.StackItem

Items.StackItem(int typecode)
Method Detail

load

Items.Item load()
Description copied from class: Items.Item
Generate code to load this item onto stack.

Overrides:
load in class Items.Item

duplicate

void duplicate()
Description copied from class: Items.Item
Generate code to use this item twice.

Overrides:
duplicate in class Items.Item

drop

void drop()
Description copied from class: Items.Item
Generate code to avoid having to use this item.

Overrides:
drop in class Items.Item

stash

void stash(int toscode)
Description copied from class: Items.Item
Generate code to stash a copy of top of stack - of typecode toscode - under this item.

Overrides:
stash in class Items.Item

width

int width()
Description copied from class: Items.Item
Return the width of this item on stack as a number of words.

Overrides:
width in class Items.Item

toString

public java.lang.String toString()
Specified by:
toString in class Items.Item