public class ConditionalStatement extends Statement
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 |
|---|---|
List<Node> |
expressionList |
nodeType, type| Constructor and Description |
|---|
ConditionalStatement(List<Node> expressionList) |
| Modifier and Type | Method and Description |
|---|---|
Statement |
accept(Visitor visitor) |
(package private) void |
accept0(ExpressionWriter writer) |
boolean |
equals(Object o) |
int |
hashCode() |
private static <E> E |
last(List<E> collection) |
accept, evaluate, getNodeType, getType, toStringvoid accept0(ExpressionWriter writer)
accept0 in class AbstractNodeprivate static <E> E last(List<E> collection)
public boolean equals(Object o)
equals in class AbstractNodepublic int hashCode()
hashCode in class AbstractNodeCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.