public class CloneableVarTable<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
label1 |
protected java.lang.String |
label2 |
java.util.HashMap<CloneableVariable,T> |
table |
protected java.lang.String |
tableName |
Modifier | Constructor and Description |
---|---|
protected |
CloneableVarTable() |
|
CloneableVarTable(java.lang.String tableName,
java.lang.String label1,
java.lang.String label2) |
Modifier and Type | Method and Description |
---|---|
void |
add(CloneableVariable v1,
T v2)
Basic add row inside the table.
|
java.util.Set<CloneableVariable> |
getKeys()
Returns all keys of the table.
|
T |
lookup(CloneableVariable v)
Basic lookup inside the table.
|
void |
makeUniqueKey(int unique)
Appends a postfix to each key in the table.
|
void |
mergeExpressionTable(CloneableVarTable<T> t)
Merge the table with the entries of another table.
|
void |
print()
Basic print of the table.
|
void |
remove(CloneableVariable v1)
Basic remove element/row inside the table.
|
void |
updateKeys(CloneableVariable oldKey,
CloneableVariable newKey)
Updates a key of the table for a specific entry.
|
public final java.util.HashMap<CloneableVariable,T> table
protected java.lang.String tableName
protected java.lang.String label1
protected java.lang.String label2
protected CloneableVarTable()
public CloneableVarTable(java.lang.String tableName, java.lang.String label1, java.lang.String label2)
public T lookup(CloneableVariable v)
public void add(CloneableVariable v1, T v2)
public void remove(CloneableVariable v1)
public void print()
public void updateKeys(CloneableVariable oldKey, CloneableVariable newKey)
public java.util.Set<CloneableVariable> getKeys()
public void makeUniqueKey(int unique) throws java.lang.CloneNotSupportedException, StaticRegionException
unique
- A unique postfix.java.lang.CloneNotSupportedException
StaticRegionException
public void mergeExpressionTable(CloneableVarTable<T> t)