|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mov.parser.Variables
public class Variables
A collection of variables.
| Constructor Summary | |
|---|---|
Variables()
Create a new empty collection of variables. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String name,
int type,
boolean isConstant)
Add a new variable. |
void |
add(java.lang.String name,
int type,
boolean isConstant,
double value)
Add a new variable. |
void |
add(java.lang.String name,
int type,
boolean isConstant,
int value)
Add a new variable. |
java.lang.Object |
clone()
Creates a deep clone of variables. |
boolean |
contains(java.lang.String name)
Return whether the collection contains the given variable. |
Variable |
get(java.lang.String name)
Get the variable of the given name. |
int |
getType(java.lang.String name)
Get the type of the variable. |
double |
getValue(java.lang.String name)
Get the value of the variable. |
void |
setValue(java.lang.String name,
double value)
Set the value of the given variable. |
void |
setValue(java.lang.String name,
int value)
Set the value of the given variable. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Variables()
| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - this should never happen.public boolean contains(java.lang.String name)
name - the name of the variable o query.
public void add(java.lang.String name,
int type,
boolean isConstant)
FALSE if boolean.
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.
public void add(java.lang.String name,
int type,
boolean isConstant,
double value)
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.value - the initial value.
public void add(java.lang.String name,
int type,
boolean isConstant,
int value)
name - the name of the variable.type - the type of the variable.isConstant - set to TRUE if the variable is a constant.value - the initial value.
public void setValue(java.lang.String name,
double value)
name - the name of the variable.value - the new value of the variable.
public void setValue(java.lang.String name,
int value)
name - the name of the variable.value - the new value of the variable.public double getValue(java.lang.String name)
name - the name of the variable.
public int getType(java.lang.String name)
name - the name of the variable.
public Variable get(java.lang.String name)
name - the name of the variable.
|
Venice 0.7beta | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||