JET

edu.utep.cs.jet.rat.val
Class NullValue

java.lang.Object
  extended by edu.utep.cs.jet.rat.val.NullValue
All Implemented Interfaces:
Denotable

public class NullValue
extends Object
implements Denotable

A class to represent the null value.

Version:
$Revision: 1.7 $
Author:
Yoonsik Cheon

Constructor Summary
NullValue(Class<?> type)
          Creates a new instance representing the null value of the given type.
 
Method Summary
 String code()
          Returns Java code for null.
 boolean isEquivalentTo(Denotable another)
          Returns true if the represented value is equal (==) to the argument's represented value.
 boolean isNull()
          Returns true if this value represents null.
 String toString()
          Returns the string "null".
 Class<?> type()
          Returns the type of this null value.
 Object value()
          Returns the null value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullValue

public NullValue(Class<?> type)
Creates a new instance representing the null value of the given type.

Method Detail

value

public Object value()
Returns the null value.

Specified by:
value in interface Denotable

type

public Class<?> type()
Returns the type of this null value.

Specified by:
type in interface Denotable

isNull

public boolean isNull()
Returns true if this value represents null. This method always returns true.

Specified by:
isNull in interface Denotable

toString

public String toString()
Returns the string "null".

Specified by:
toString in interface Denotable
Overrides:
toString in class Object

code

public String code()
Returns Java code for null.

Specified by:
code in interface Denotable

isEquivalentTo

public boolean isEquivalentTo(Denotable another)
Returns true if the represented value is equal (==) to the argument's represented value.

Specified by:
isEquivalentTo in interface Denotable

JET

JET is Copyright (C) 2005-2008 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.