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

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

 class Items.MemberItem
extends Items.Item

An item representing an instance variable or method.


Field Summary
(package private)  Symbol member
          The represented symbol.
(package private)  boolean nonvirtual
          Flag that determines whether or not access is virtual.
 
Fields inherited from class com.sun.tools.javac.jvm.Items.Item
typecode
 
Constructor Summary
Items.MemberItem(Symbol member, boolean nonvirtual)
           
 
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 invoke()
          Generate code to invoke method represented by this item.
(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.
(package private)  void store()
          Generate code to store top of stack into 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, mkCond
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

member

Symbol member
The represented symbol.


nonvirtual

boolean nonvirtual
Flag that determines whether or not access is virtual.

Constructor Detail

Items.MemberItem

Items.MemberItem(Symbol member,
                 boolean nonvirtual)
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

store

void store()
Description copied from class: Items.Item
Generate code to store top of stack into this item.

Overrides:
store in class Items.Item

invoke

Items.Item invoke()
Description copied from class: Items.Item
Generate code to invoke method represented by this item.

Overrides:
invoke 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