|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.mit.csail.sdg.alloy4compiler.ast.CommandScope
public class CommandScope
Immutable; reresents a scope in a "run" or "check" command.
Invariant: sig != null
Invariant: endingScope >= startingScope >= 0
Invariant: increment > 0
| Field Summary | |
|---|---|
int |
endingScope
The ending scope; if this sig is not a growing sig, then this.startingScope==this.endingScope. |
int |
increment
The scope increment; if this sig is not a growing sig, then this.increment is ignored. |
boolean |
isExact
True iff the scope is an exact scope. |
Pos |
pos
The position in the original source file where this scope was declared; can be Pos.UNKNOWN if unknown. |
Sig |
sig
The sig whose scope is being given by this CommandScope object. |
int |
startingScope
The starting scope. |
| Constructor Summary | |
|---|---|
CommandScope(Pos pos,
Sig sig,
boolean isExact,
int startingScope,
int endingScope,
int increment)
Construct a new CommandScope object. |
|
CommandScope(Sig sig,
boolean isExact,
int scope)
Construct a new CommandScope object. |
|
| Method Summary | |
|---|---|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Pos pos
public final Sig sig
public final boolean isExact
public final int startingScope
public final int endingScope
public final int increment
| Constructor Detail |
|---|
public CommandScope(Sig sig,
boolean isExact,
int scope)
throws ErrorSyntax
sig - - the sig for this scopeisExact - - true iff the scope is intended to be exactscope - - the scope
ErrorSyntax - if scope is less than zero
public CommandScope(Pos pos,
Sig sig,
boolean isExact,
int startingScope,
int endingScope,
int increment)
throws ErrorSyntax
pos - - the position where this scope is givensig - - the sig for this scopeisExact - - true iff the scope is intended to be exactstartingScope - - the starting scopeendingScope - - the ending scope (if this sig is not intended to be growable, then startingScope should equal endingScope)increment - - the scope increment (if this sig is not intended to be growable, then this field is ignored)
ErrorSyntax - if startingScope is less than zero
ErrorSyntax - if endingScope is less than startingScope
ErrorSyntax - if increment is less than one| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||