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

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

 class Items.ImmediateItem
extends Items.Item

An item representing a literal.


Field Summary
(package private)  java.lang.Object value
          The literal's value.
 
Fields inherited from class com.sun.tools.javac.jvm.Items.Item
typecode
 
Constructor Summary
Items.ImmediateItem(Type type, java.lang.Object value)
           
 
Method Summary
(package private)  Items.Item coerce(int targetcode)
          Generate code to coerce item to given type code.
private  boolean isPosZero(double x)
          Return true iff double number is positive 0.
private  boolean isPosZero(float x)
          Return true iff float number is positive 0.
private  void ldc()
           
(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.
 java.lang.String toString()
           
 
Methods inherited from class com.sun.tools.javac.jvm.Items.Item
coerce, drop, duplicate, invoke, stash, store, width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

java.lang.Object value
The literal's value.

Constructor Detail

Items.ImmediateItem

Items.ImmediateItem(Type type,
                    java.lang.Object value)
Method Detail

ldc

private void ldc()

load

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

Overrides:
load in class Items.Item

isPosZero

private boolean isPosZero(float x)
Return true iff float number is positive 0.


isPosZero

private boolean isPosZero(double x)
Return true iff double number is positive 0.


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

coerce

Items.Item coerce(int targetcode)
Description copied from class: Items.Item
Generate code to coerce item to given type code.

Overrides:
coerce in class Items.Item
Parameters:
targetcode - The type code to coerce to.

toString

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