harpoon.IR.Tree
Interface Typed

All Known Subinterfaces:
PreciselyTyped
All Known Implementing Classes:
CONST, ESEQ, Exp, MEM, MOVE, RETURN, THROW

public interface Typed

The Typed interface allows access to type information for Exps (including TEMP, MEM, CONST, OPER, and UNOP) and the Stms THROW, RETURN, and MOVE.

Version:
$Id: Typed.java,v 1.2 2002/02/25 21:05:42 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Field Summary
static int DOUBLE
           
static int FLOAT
           
static int INT
           
static int LONG
           
static int POINTER
           
 
Method Summary
 boolean isDoubleWord()
          Returns true if the expression corresponds to a 64-bit value.
 boolean isFloatingPoint()
          Returns true if the expression corresponds to a floating-point value.
 int type()
          Returns enumerated constant (INT, LONG, FLOAT, DOUBLE, or POINTER) corresponding to the type of the expression.
 

Field Detail

INT

public static final int INT
See Also:
Constant Field Values

LONG

public static final int LONG
See Also:
Constant Field Values

FLOAT

public static final int FLOAT
See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
See Also:
Constant Field Values

POINTER

public static final int POINTER
See Also:
Constant Field Values
Method Detail

type

public int type()
Returns enumerated constant (INT, LONG, FLOAT, DOUBLE, or POINTER) corresponding to the type of the expression.


isDoubleWord

public boolean isDoubleWord()
Returns true if the expression corresponds to a 64-bit value.


isFloatingPoint

public boolean isFloatingPoint()
Returns true if the expression corresponds to a floating-point value.