b==0?x:y, b==0 is the condition, x is thenExpr, and y is elseExpr.
| Modifier and Type | Field and Description |
|---|---|
| private Expression | |
| private Expression | |
| private Expression |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | ConditionalExpr(TokenRange tokenRange, Expression condition, Expression thenExpr, Expression elseExpr)
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 ConditionalExpr | |
| public ConditionalExpr | clone()
Creates and returns a copy of this object.
|
| public Expression | |
| public Expression | |
| public ConditionalExprMetaModel | |
| public Expression | |
| public void | |
| public boolean | |
| public boolean | |
| public boolean | replace(Node node, Node replacementNode)
Overrides com. |
| public ConditionalExpr | setCondition(final Expression condition)
Implements com. |
| public ConditionalExpr | |
| public ConditionalExpr | |
| public Optional |
| condition | back to summary |
|---|---|
| private Expression condition | |
| elseExpr | back to summary |
|---|---|
| private Expression elseExpr | |
| thenExpr | back to summary |
|---|---|
| private Expression thenExpr | |
| ConditionalExpr | back to summary |
|---|---|
| public ConditionalExpr() | |
| ConditionalExpr | back to summary |
|---|---|
public ConditionalExpr(Expression condition, Expression thenExpr, Expression elseExpr)
| |
| ConditionalExpr | back to summary |
|---|---|
| public ConditionalExpr(TokenRange tokenRange, Expression condition, Expression thenExpr, Expression elseExpr) 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.
| |
| asConditionalExpr | back to summary |
|---|---|
| public ConditionalExpr asConditionalExpr() Overrides com.
| |
| clone | back to summary |
|---|---|
| public ConditionalExpr 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
| |
| getCondition | back to summary |
|---|---|
| public Expression getCondition() Implements com.
| |
| getElseExpr | back to summary |
|---|---|
public Expression getElseExpr()
| |
| getMetaModel | back to summary |
|---|---|
| public ConditionalExprMetaModel getMetaModel() Overrides com.
| |
| getThenExpr | back to summary |
|---|---|
public Expression getThenExpr()
| |
| ifConditionalExpr | back to summary |
|---|---|
| public void ifConditionalExpr(Consumer<ConditionalExpr> action) Overrides com.
| |
| isConditionalExpr | back to summary |
|---|---|
| public boolean isConditionalExpr() Overrides com.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Node node) Overrides com.
| |
| replace | back to summary |
|---|---|
| public boolean replace(Node node, Node replacementNode) Overrides com.
| |
| setCondition | back to summary |
|---|---|
| public ConditionalExpr setCondition(final Expression condition) Implements com.
| |
| setElseExpr | back to summary |
|---|---|
public ConditionalExpr setElseExpr(final Expression elseExpr)
| |
| setThenExpr | back to summary |
|---|---|
public ConditionalExpr setThenExpr(final Expression thenExpr)
| |
| toConditionalExpr | back to summary |
|---|---|
| public Optional Overrides com.
| |