|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.et.rat.val.NullValue
public class NullValue
A class to represent the null value.
| Field Summary | |
|---|---|
private Class |
type
The type of this null value. |
| 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 |
| Field Detail |
|---|
private Class type
| Constructor Detail |
|---|
public NullValue(Class type)
| Method Detail |
|---|
public Object value()
value in interface Denotablepublic Class type()
type in interface Denotablepublic boolean isNull()
isNull in interface Denotablepublic String toString()
"null".
toString in interface DenotabletoString in class Objectpublic String code()
code in interface Denotablepublic boolean isEquivalentTo(Denotable another)
isEquivalentTo in interface Denotable
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||