public final class StatementSpec extends SpecificationBase
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
assertionKeyword |
Modifier and Type | Method and Description |
---|---|
void |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
void |
accept(ASTVisitorOld visitor)
Accept visitor for a visit.
|
void |
acceptChildren(ASTVisitor visitor)
Accept visitor for a visit to the children of this node.
|
static StatementSpec |
construct(java.lang.String text,
ErrorStream error,
SourcePosition pos)
Construct method specification from denoted text.
|
Formula |
getAssertion()
Get pre-state assertion.
|
void |
setAssertion(Formula ass)
Set pre-state assertion
|
getPosition, getText, setPosition
accept, accept, print, printCore, toString, toStringCore
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPosition, setPosition
print, printCore, toString, toStringCore
public static final java.lang.String assertionKeyword
public static StatementSpec construct(java.lang.String text, ErrorStream error, SourcePosition pos)
text
- the text of the specification.error
- the stream for printing error messagespos
- the source position of the specificationpublic Formula getAssertion()
public void setAssertion(Formula ass)
ass
- the assertion (may be null).public void accept(ASTVisitorOld visitor)
accept
in interface AST
accept
in class SpecificationBase
visitor
- the visitor who is accepted by this node.public void accept(ASTVisitor visitor)
accept
in interface AST
accept
in class SpecificationBase
visitor
- the visitor who is accepted by this node.public void acceptChildren(ASTVisitor visitor)
acceptChildren
in interface AST
acceptChildren
in class ASTBase
visitor
- the visitor who is accepted by the children of this node.