|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectMSequence
public class MSequence extends Object
A sequence that can be mutated (unlike a Sequence, which is immutable). The "M" stands for "Mutable".
| Modifier and Type | Field and Description |
|---|---|
List<MStatement> |
statements
|
| Constructor and Description |
|---|
MSequence()
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkRep()
Checks the following well-formedness properties for every statement in the list of statements: The number of inputs is the same as the input of inputs specified by the statement kind. |
MStatement |
getDeclaringStatement(MVariable v)
|
int |
getIndex(MVariable v)
|
List<MVariable> |
getInputs(int statementIndex)
|
MStatement |
getStatement(int i)
|
StatementKind |
getStatementKind(int statementIndex)
|
List<Integer> |
getUses(MVariable v)
Returns all the indices of statements where v is an input to the statement. |
MVariable |
getVariable(int i)
|
Map<MVariable,MVariable> |
insert(int index,
MSequence seq)
inserts the statements making up the given sequence into this sequence, at the given index. |
MSequence |
makeCopy()
|
int |
numInfluencingStatements(int maxIdx,
List<MVariable> vars)
|
int |
size()
|
String |
toCodeString()
A compilable (Java source code) representation of this sequence. |
Sequence |
toImmutableSequence()
|
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public List<MStatement> statements
| Constructor Detail |
|---|
public MSequence()
| Method Detail |
|---|
public void checkRep()
public MSequence makeCopy()
public List<Integer> getUses(MVariable v)
public int numInfluencingStatements(int maxIdx,
List<MVariable> vars)
public String toString()
toString in class Objectpublic MStatement getDeclaringStatement(MVariable v)
public MStatement getStatement(int i)
public int getIndex(MVariable v)
public int size()
public MVariable getVariable(int i)
public Sequence toImmutableSequence()
public String toCodeString()
public Map<MVariable,MVariable> insert(int index,
MSequence seq)
index - The index at which to insert the given sequence.seq - The sequence to insert.public List<MVariable> getInputs(int statementIndex)
public StatementKind getStatementKind(int statementIndex)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||