harpoon.IR.Tree
Class Type

java.lang.Object
  extended by harpoon.IR.Tree.Type

public abstract class Type
extends Object

Type enumerates the possible Tree expression types.

Version:
$Id: Type.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
          64-bit floating-point type.
static int FLOAT
          32-bit floating-point type.
static int INT
          32-bit integer type.
static int LONG
          64-bit integer type.
static int POINTER
          Pointer type.
 
Constructor Summary
Type()
           
 
Method Summary
static boolean isDoubleWord(TreeFactory tf, int type)
           
static boolean isFloatingPoint(int type)
           
static boolean isPointer(int type)
           
static boolean isValid(int type)
           
static String toString(int type)
          Return a string describing the given enumerated type.
static String toString(PreciselyTyped pt)
          Return a string describing the type of a PreciselyTyped expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INT

public static final int INT
32-bit integer type.

See Also:
Constant Field Values

LONG

public static final int LONG
64-bit integer type.

See Also:
Constant Field Values

FLOAT

public static final int FLOAT
32-bit floating-point type.

See Also:
Constant Field Values

DOUBLE

public static final int DOUBLE
64-bit floating-point type.

See Also:
Constant Field Values

POINTER

public static final int POINTER
Pointer type. Bitwidth is machine-dependent.

See Also:
Constant Field Values
Constructor Detail

Type

public Type()
Method Detail

isDoubleWord

public static final boolean isDoubleWord(TreeFactory tf,
                                         int type)

isFloatingPoint

public static final boolean isFloatingPoint(int type)

isPointer

public static final boolean isPointer(int type)

isValid

public static boolean isValid(int type)

toString

public static String toString(int type)
Return a string describing the given enumerated type.


toString

public static String toString(PreciselyTyped pt)
Return a string describing the type of a PreciselyTyped expression.