public class ConditionalExpression extends AbstractNode
With an odd number of expressions {c0, e0, c1, e1, ..., cn-1, en-1, en} represents "if (c0) e0 else if (c1) e1 ... else en"; with an even number of expressions {c0, e0, c1, e1, ..., cn-1, en-1} represents "if (c0) e0 else if (c1) e1 ... else if (cn-1) en-1".
| Modifier and Type | Field and Description |
|---|---|
(package private) List<Node> |
expressionList |
nodeType, type| Constructor and Description |
|---|
ConditionalExpression(List<Node> expressionList,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
accept(ExpressionWriter writer,
int lprec,
int rprec) |
<R> R |
accept(Visitor<R> visitor) |
boolean |
equals(Object o) |
int |
hashCode() |
accept, accept, accept0, evaluate, getNodeType, getType, toStringpublic <R> R accept(Visitor<R> visitor)
void accept(ExpressionWriter writer, int lprec, int rprec)
accept in class AbstractNodepublic boolean equals(Object o)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodeCopyright © 2012–2021 The Apache Software Foundation. All rights reserved.