|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectdk.brics.string.intermediate.operations.AliasTable
public class AliasTable
Represents the aliasing status between a set of variables.
This class is responsible for an efficient representation. To this end, the following semantic assumptions are exploited:setAliasStatus(dk.brics.string.intermediate.Variable, dk.brics.string.intermediate.Variable, dk.brics.string.intermediate.operations.AliasStatus) methods in these ways:
| Constructor Summary | |
|---|---|
AliasTable(Set<Variable> variables,
AliasStatus initial)
Creates variable aliasings between the specified variables. |
|
| Method Summary | |
|---|---|
AliasStatus |
getAliasStatus(UnorderedPair<Variable> pair)
Returns the current aliasing status between two variables. |
AliasStatus |
getAliasStatus(Variable a,
Variable b)
Returns the current aliasing status between two variables. |
boolean |
setAliasStatus(UnorderedPair<Variable> pair,
AliasStatus status)
Sets the current aliasing status between two variables. |
boolean |
setAliasStatus(Variable a,
Variable b,
AliasStatus status)
Sets the current aliasing status between two variables. |
String |
toString()
Returns the result of toString on the underlying map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AliasTable(Set<Variable> variables,
AliasStatus initial)
variables - the variables to track aliasing between.initial - the initial aliasing status between all pairs of variables| Method Detail |
|---|
public AliasStatus getAliasStatus(UnorderedPair<Variable> pair)
pair - a pair of variables from the set passed to AliasTable's constructor.
public AliasStatus getAliasStatus(Variable a,
Variable b)
a - a variable from the set passed to AliasTable's constructor.b - a variable from the set passed to AliasTable's constructor.
public boolean setAliasStatus(UnorderedPair<Variable> pair,
AliasStatus status)
DEFINITELY is accepted.
pair - a pair of variables from the set passed to AliasTable's constructor.
public boolean setAliasStatus(Variable a,
Variable b,
AliasStatus status)
AliasTable may override the change.
public String toString()
toString in class Object
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||