ca.uwaterloo.cs.ql.interp
Class Value

java.lang.Object
  extended by ca.uwaterloo.cs.ql.interp.Value

public class Value
extends java.lang.Object


Field Summary
static Value EVAL
           
static Value VOID
           
 
Constructor Summary
Value(boolean b)
           
Value(float f)
           
Value(int i)
           
Value(java.lang.Object o)
           
 
Method Summary
 boolean booleanValue()
           
 float floatValue()
           
 java.lang.Class getType()
           
 int intValue()
           
 boolean isPrimitive()
          Primitives: int, float, boolean and String.
 java.lang.Object objectValue()
           
 void print(java.io.PrintStream ps)
           
 void set(boolean b)
           
 void set(float f)
           
 void set(int i)
           
 void set(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VOID

public static final Value VOID

EVAL

public static final Value EVAL
Constructor Detail

Value

public Value(int i)

Value

public Value(float f)

Value

public Value(boolean b)

Value

public Value(java.lang.Object o)
Method Detail

getType

public java.lang.Class getType()

isPrimitive

public boolean isPrimitive()
Primitives: int, float, boolean and String.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

intValue

public int intValue()

floatValue

public float floatValue()

booleanValue

public boolean booleanValue()

objectValue

public java.lang.Object objectValue()

set

public void set(int i)

set

public void set(boolean b)

set

public void set(float f)

set

public void set(java.lang.Object o)

print

public void print(java.io.PrintStream ps)