|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.unisaarland.cs.st.jerify.verifier.typestate.State
public class State
The State class represents a State in the typestate analysis.
| Field Summary | |
|---|---|
static java.lang.String |
ErrorState
The name of the State that represents an error state |
static java.lang.String |
UnkownState
The name of the State that represents an uninitialized state |
| Constructor Summary | |
|---|---|
State()
Create a new empty State |
|
State(java.util.Collection<java.lang.String> startStates)
Creates a State which is initialized to a collection of possibles states |
|
State(State s)
Create a copy of s |
|
State(java.lang.String startState)
Create a State which is initialized to one state |
|
| Method Summary | |
|---|---|
State |
applyStateChange(StateChanges stateChanges,
com.sun.source.tree.Tree tree)
Takes a Mapping from State to states , and applies it to the current Set of states by returning the new State. |
boolean |
equals(java.lang.Object o)
|
void |
filter(java.util.Collection<java.lang.String> filterSet)
filters the States of this State, so that only States that also occur in the filter set are present |
boolean |
isSubsetOf(State otherState)
Check whether this state is a subset of an other State. |
State |
merge(State otherState)
Includes the information in the other State into this State |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UnkownState
public static final java.lang.String ErrorState
| Constructor Detail |
|---|
public State()
public State(java.lang.String startState)
startState - the initialized Statepublic State(java.util.Collection<java.lang.String> startStates)
startStates - the initialized Statespublic State(State s)
s - the State to make a copy of| Method Detail |
|---|
public State merge(State otherState)
otherState - the State to include
public boolean isSubsetOf(State otherState)
otherState -
public State applyStateChange(StateChanges stateChanges,
com.sun.source.tree.Tree tree)
conversion - The changes that are to be applied.tree - The part of the code that caused the state changes to be applied (for error reporting).
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void filter(java.util.Collection<java.lang.String> filterSet)
filterSet - the additional information that only these states are possible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||