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

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

 class Items.CondItem
extends Items.Item

An item representing a conditional or unconditional jump.


Field Summary
(package private)  Code.Chain falseJumps
          A chain encomassing all jumps that can be taken if the condition evaluates to false.
(package private)  int opcode
          The jump's opcode.
(package private)  JCTree tree
           
(package private)  Code.Chain trueJumps
          A chain encomassing all jumps that can be taken if the condition evaluates to true.
 
Fields inherited from class com.sun.tools.javac.jvm.Items.Item
typecode
 
Constructor Summary
Items.CondItem(int opcode, Code.Chain truejumps, Code.Chain falsejumps)
           
 
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)  boolean isFalse()
           
(package private)  boolean isTrue()
           
(package private)  Code.Chain jumpFalse()
           
(package private)  Code.Chain jumpTrue()
           
(package private)  Items.Item load()
          Generate code to load this item onto stack.
(package private)  Items.CondItem mkCond()
          Generate code to turn item into a testable condition.
(package private)  Items.CondItem negate()
           
(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, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

trueJumps

Code.Chain trueJumps
A chain encomassing all jumps that can be taken if the condition evaluates to true.


falseJumps

Code.Chain falseJumps
A chain encomassing all jumps that can be taken if the condition evaluates to false.


opcode

int opcode
The jump's opcode.


tree

JCTree tree
Constructor Detail

Items.CondItem

Items.CondItem(int opcode,
               Code.Chain truejumps,
               Code.Chain falsejumps)
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

mkCond

Items.CondItem mkCond()
Description copied from class: Items.Item
Generate code to turn item into a testable condition.

Overrides:
mkCond in class Items.Item

jumpTrue

Code.Chain jumpTrue()

jumpFalse

Code.Chain jumpFalse()

negate

Items.CondItem negate()

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

isTrue

boolean isTrue()

isFalse

boolean isFalse()

toString

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