public class DynamicTable<V> extends Table<za.ac.sun.cs.green.expr.Variable,V>
Constructor and Description |
---|
DynamicTable(StaticTable staticTable,
int uniqueNum) |
DynamicTable(java.lang.String tableName,
java.lang.String label1,
java.lang.String label2) |
DynamicTable(java.lang.String tableName,
java.lang.String label1,
java.lang.String label2,
java.util.ArrayList<za.ac.sun.cs.green.expr.Variable> keys,
java.util.ArrayList<V> values) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(DynamicTable<V> constantsTable) |
java.util.ArrayList<za.ac.sun.cs.green.expr.Variable> |
getKeys()
Returns all keys of the table.
|
V |
lookupByName(java.lang.String name) |
void |
makeClonableVarUniqueKey(int unique)
Appends a postfix to each key in the table.
|
za.ac.sun.cs.green.expr.Variable |
reverseLookup(int[] var) |
public DynamicTable(java.lang.String tableName, java.lang.String label1, java.lang.String label2)
public DynamicTable(java.lang.String tableName, java.lang.String label1, java.lang.String label2, java.util.ArrayList<za.ac.sun.cs.green.expr.Variable> keys, java.util.ArrayList<V> values)
public DynamicTable(StaticTable staticTable, int uniqueNum) throws java.lang.CloneNotSupportedException, StaticRegionException
java.lang.CloneNotSupportedException
StaticRegionException
public java.util.ArrayList<za.ac.sun.cs.green.expr.Variable> getKeys()
public void makeClonableVarUniqueKey(int unique) throws java.lang.CloneNotSupportedException, StaticRegionException
unique
- A unique postfix.java.lang.CloneNotSupportedException
StaticRegionException
public za.ac.sun.cs.green.expr.Variable reverseLookup(int[] var)
public void addAll(DynamicTable<V> constantsTable)
public V lookupByName(java.lang.String name)