|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.rat.val.PrimitiveValue
public abstract class PrimitiveValue
An abstract class to denote various primitive values.
| Field Summary | |
|---|---|
protected Object |
value
The value that this object represents. |
| Constructor Summary | |
|---|---|
protected |
PrimitiveValue(Object value)
Creates a new value containing the given (wrapper) object, value. |
| Method Summary | |
|---|---|
String |
code()
Returns Java code which, if evaluated, produces the represented value of this object. |
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 representation of this value. |
abstract Class<?> |
type()
Returns the type of this value. |
Object |
value()
Returns the contained value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Object value
| Constructor Detail |
|---|
protected PrimitiveValue(Object value)
value.
| Method Detail |
|---|
public abstract Class<?> type()
type in interface Denotablepublic boolean isNull()
isNull in interface Denotablepublic Object value()
value in interface Denotablepublic String toString()
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 | |||||||||