assert dead : "Wasn't expecting to be dead here"; the check is "dead" and the message is the string.
| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private Expression |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | AssertStmt(TokenRange tokenRange, Expression check, Expression message)
This constructor is used by the parser and is considered private. |
| Modifier and Type | Method and Description |
|---|---|
| public <R, A> R | accept(final GenericVisitor<R, A>
the visitor implementation v, final A the argument passed to the visitor (of type A) arg)Implements com. |
| public <A> void | accept(final VoidVisitor<A>
the visitor implementation v, final A any value relevant for the visitor (of type A) arg)Implements com. |
| public AssertStmt | |
| public AssertStmt | clone()
Creates and returns a copy of this object.
|
| public Expression | |
| public Optional | |
| public AssertStmtMetaModel | |
| public void | ifAssertStmt(Consumer<AssertStmt> action)
Overrides com. |
| public boolean | |
| public boolean | |
| public AssertStmt | |
| public boolean | |
| public AssertStmt | |
| public AssertStmt | Returns: this, the AssertStmtthe message, can be null message)Sets the message |
| public Optional |
| check | back to summary |
|---|---|
| private Expression check | |
| message | back to summary |
|---|---|
| private Expression message
| |
| AssertStmt | back to summary |
|---|---|
| public AssertStmt() | |
| AssertStmt | back to summary |
|---|---|
| public AssertStmt(final Expression check) | |
| AssertStmt | back to summary |
|---|---|
public AssertStmt(final Expression check, final Expression message)
| |
| AssertStmt | back to summary |
|---|---|
| public AssertStmt(TokenRange tokenRange, Expression check, Expression message) This constructor is used by the parser and is considered private.
| |
| accept | back to summary |
|---|---|
| public <R, A> R accept(final GenericVisitor<R, A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| accept | back to summary |
|---|---|
| public <A> void accept(final VoidVisitor<A> v, final A arg) Implements com. Doc from com. Accept method for visitor support.
| |
| asAssertStmt | back to summary |
|---|---|
| public AssertStmt asAssertStmt() Overrides com.
| |
| clone | back to summary |
|---|---|
| public AssertStmt clone() Overrides com. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getCheck | back to summary |
|---|---|
public Expression getCheck()
| |
| getMessage | back to summary |
|---|---|
public Optional
| |
| getMetaModel | back to summary |
|---|---|
| public AssertStmtMetaModel getMetaModel() Overrides com.
| |
| ifAssertStmt | back to summary |
|---|---|
| public void ifAssertStmt(Consumer<AssertStmt> action) Overrides com.
| |
| isAssertStmt | back to summary |
|---|---|
| public boolean isAssertStmt() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| removeMessage | back to summary |
|---|---|
public AssertStmt removeMessage()
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setCheck | back to summary |
|---|---|
public AssertStmt setCheck(final Expression check)
| |
| setMessage | back to summary |
|---|---|
| public AssertStmt setMessage(final Expression message) Sets the message
| |
| toAssertStmt | back to summary |
|---|---|
| public Optional Overrides com.
| |