public class IfStatement extends Statement {
public Expression condition;
+ public Statement statement;
public ElseIf[] elseifs;
public Else els;
+ /**
+ * Create a new If statement
+ * @param condition the condition
+ * @param statement a statement or a block of statements
+ * @param elseifs the elseifs
+ * @param els the else (or null)
+ * @param sourceStart the starting position
+ * @param sourceEnd the ending offset
+ */
public IfStatement(Expression condition,
+ Statement statement,
ElseIf[] elseifs,
Else els,
int sourceStart,
int sourceEnd) {
super(sourceStart, sourceEnd);
this.condition = condition;
+ this.statement = statement;
this.elseifs = elseifs;
this.els = els;
}