public interface SpecStmtCommand extends CircusCommand
Circus command declaring a specification statement in Carroll Morgan's style.
It represents the grammar rule N+:[Pred,Pred].
The parser is responsible to ensure that no strokes are allowed in the frame variables.
As assumption and coercion are syntactic sugar for often used specification statements,
they do not have an explicit AST class. Instead, assumption (grammar rule {Pred})
is represented by a specification statement with empty frame, Pred precondition,
and true postcondition. Similarly, coercion (grammar rule [Pred]) is represented by
a specification statement with empty frame, true precondition, and Pred postcondition.
| Modifier and Type | Method and Description |
|---|---|
NameList |
getFrame()
Returns the Frame element.
|
Pred |
getPost() |
Pred |
getPre() |
ListTerm<Pred> |
getPred()
Returns the Pred elements.
|
ZNameList |
getZFrame()
This is a convenience method.
|
void |
setFrame(NameList frame)
Sets the Frame element.
|
void |
setPost(Pred pred) |
void |
setPre(Pred pred) |
NameList getFrame()
void setFrame(NameList frame)
frame - the Frame element.getFrame()ListTerm<Pred> getPred()
Returns the Pred elements.
To add or remove elements, use the methods provided by the List interface (that's why there is no need for a setter method).
ZNameList getZFrame()
Pred getPre()
void setPre(Pred pred)
Pred getPost()
void setPost(Pred pred)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.