|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.expr.Variable
public abstract class Variable
A general-purpose variable object.
| Constructor Summary | |
|---|---|
Variable()
|
|
| Method Summary | |
|---|---|
abstract Object |
get()
Retrieves the value of the variable. |
boolean |
getBoolean()
Retrieves the value of the variable as a boolean. |
byte |
getByte()
Retrieves the value of the variable as a byte. |
char |
getChar()
Retrieves the value of the variable as a char. |
double |
getDouble()
Retrieves the value of the variable as a double. |
float |
getFloat()
Retrieves the value of the variable as a float. |
int |
getInt()
Retrieves the value of the variable as an integer. |
long |
getLong()
Retrieves the value of the variable as a long. |
short |
getShort()
Retrieves the value of the variable as a short. |
static Variable |
newInstance(boolean value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(byte value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(char value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(double value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(float value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(int value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(long value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(Object value)
Creates a new variable with the given initial value. |
static Variable |
newInstance(short value)
Creates a new variable with the given initial value. |
abstract void |
set(Object value)
Sets the value of the variable. |
void |
setBoolean(boolean value)
Sets the value of the variable as a boolean. |
void |
setByte(byte value)
Sets the value of the variable as a boolean. |
void |
setChar(char value)
Sets the value of the variable as a boolean. |
void |
setDouble(double value)
Sets the value of the variable as a boolean. |
void |
setFloat(float value)
Sets the value of the variable as a boolean. |
void |
setInt(int value)
Sets the value of the variable as a boolean. |
void |
setLong(long value)
Sets the value of the variable as a boolean. |
void |
setShort(short value)
Sets the value of the variable as a boolean. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Variable()
| Method Detail |
|---|
public static Variable newInstance(boolean value)
public static Variable newInstance(byte value)
public static Variable newInstance(char value)
public static Variable newInstance(double value)
public static Variable newInstance(float value)
public static Variable newInstance(int value)
public static Variable newInstance(long value)
public static Variable newInstance(short value)
public static Variable newInstance(Object value)
public boolean getBoolean()
public byte getByte()
public char getChar()
public double getDouble()
public float getFloat()
public int getInt()
public long getLong()
public short getShort()
public abstract Object get()
public void setBoolean(boolean value)
public void setByte(byte value)
public void setChar(char value)
public void setDouble(double value)
public void setFloat(float value)
public void setInt(int value)
public void setLong(long value)
public void setShort(short value)
public abstract void set(Object value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||