|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xact.analysis.flowgraph.VariableFilter
public class VariableFilter
Variable label set for flow graph edges.
| Nested Class Summary | |
|---|---|
static class |
VariableFilter.Kind
Variable filter kinds. |
| Constructor Summary | |
|---|---|
VariableFilter()
Constructs a normal variable label set, initially containing all variables. |
|
VariableFilter(boolean reversed)
Constructs a normal variable label set. |
|
VariableFilter(boolean reversed,
VariableFilter.Kind kind)
Constructs a variable label set with a specific kind. |
|
VariableFilter(boolean reversed,
VariableFilter.Kind kind,
int id)
Constructs a variable label set with a specific kind and call id. |
|
VariableFilter(Variable v)
Constructs a normal variable label set, initially containing a single variable. |
|
VariableFilter(Variable v,
VariableFilter.Kind kind)
Constructs a normal variable label set, initially containing a single variable. |
|
| Method Summary | |
|---|---|
void |
addVariable(Variable var)
Adds a variable to the label set. |
boolean |
containsAll()
Returns true if this definitely contains all variables. |
boolean |
containsVariable(Variable var)
Checks whether the given variable is contained in the label set. |
boolean |
equals(Object other)
Checks whether the given variable filter is equal to this variable filter. |
VariableFilter.Kind |
getKind()
Returns the edge kind. |
Set<Variable> |
getVariableSet()
For reversed filters, returns the set of variables not in the filter, and for non-reversed filters, returns the set of variables in the filter. |
int |
hashCode()
Returns a hash code for this variable filter. |
VariableFilter |
intersection(VariableFilter other)
Creates a new variable filter accepting only variables accepted by both variable filters. |
boolean |
isReversed()
|
void |
removeVariable(Variable var)
Removes a variable from the label set. |
String |
toString()
Returns a string description of this variable filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VariableFilter()
public VariableFilter(boolean reversed)
reversed - indicates whether the set should initially contain
all variables (true) or no variables (false).
public VariableFilter(boolean reversed,
VariableFilter.Kind kind)
reversed - indicates whether the set should initially contain
all variables (true) or no variables (false).kind - the kind of edge to make
public VariableFilter(boolean reversed,
VariableFilter.Kind kind,
int id)
reversed - indicates whether the set should initially contain
all variables (true) or no variables (false).kind - the kind of edge to makeid - the call ID of the edgepublic VariableFilter(Variable v)
public VariableFilter(Variable v,
VariableFilter.Kind kind)
| Method Detail |
|---|
public void addVariable(Variable var)
public boolean containsAll()
public boolean containsVariable(Variable var)
public boolean equals(Object other)
equals in class Objectpublic VariableFilter.Kind getKind()
public Set<Variable> getVariableSet()
public int hashCode()
hashCode in class Objectpublic VariableFilter intersection(VariableFilter other)
other - a variable filter. Will not be modified
public boolean isReversed()
public void removeVariable(Variable var)
public String toString()
toString in class Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||