|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.utjml.tgen.Value
public abstract class Value
An abstract class to denote various values.
| Field Summary | |
|---|---|
protected Object |
value
The value of this object. |
| Constructor Summary | |
|---|---|
protected |
Value(Object value)
Creates a new value. |
| Method Summary | |
|---|---|
static BooleanValue |
booleanValue(boolean val)
Creates a boolean value. |
static edu.utep.cs.utjml.tgen.Value.ByteValue |
byteValue(byte val)
Creates a byte value. |
static edu.utep.cs.utjml.tgen.Value.CharValue |
charValue(char val)
Creates a char value. |
static edu.utep.cs.utjml.tgen.Value.DoubleValue |
doubleValue(double val)
Creates a double value. |
static edu.utep.cs.utjml.tgen.Value.FloatValue |
floatValue(float val)
Creates a float value. |
static IntValue |
intValue(int val)
Creates an int value. |
static edu.utep.cs.utjml.tgen.Value.LongValue |
longValue(long val)
Creates a long value. |
static edu.utep.cs.utjml.tgen.Value.NullValue |
nullValue(Class type)
Creates a null valu of given type. |
static edu.utep.cs.utjml.tgen.Value.ShortValue |
shortValue(short val)
Creates a short value. |
static edu.utep.cs.utjml.tgen.Value.StringValue |
stringValue(String val)
Creates a string value. |
String |
toString()
Returns the string representation of this value. |
abstract Class |
type()
Returns the type of this value. |
Object |
value()
Returns the 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 Value(Object value)
| Method Detail |
|---|
public abstract Class type()
type in interface Denotablepublic Object value()
value in interface Denotablepublic String toString()
toString in interface DenotabletoString in class Objectpublic static BooleanValue booleanValue(boolean val)
public static edu.utep.cs.utjml.tgen.Value.ByteValue byteValue(byte val)
public static edu.utep.cs.utjml.tgen.Value.ShortValue shortValue(short val)
public static IntValue intValue(int val)
public static edu.utep.cs.utjml.tgen.Value.LongValue longValue(long val)
public static edu.utep.cs.utjml.tgen.Value.CharValue charValue(char val)
public static edu.utep.cs.utjml.tgen.Value.FloatValue floatValue(float val)
public static edu.utep.cs.utjml.tgen.Value.DoubleValue doubleValue(double val)
public static edu.utep.cs.utjml.tgen.Value.StringValue stringValue(String val)
public static edu.utep.cs.utjml.tgen.Value.NullValue nullValue(Class type)
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||