com.ssv.test.airbase.contest.operators
Class WhileOperator
java.lang.Object
com.ssv.test.airbase.contest.operators.IfOperator
com.ssv.test.airbase.contest.operators.WhileOperator
- All Implemented Interfaces:
- Operator
public class WhileOperator
- extends IfOperator
Оператор, реализующий цикл
while(condition) {
operator1;
}
- Author:
- Sergey Siryk
Method Summary |
void |
generate(Execution execution)
Вставляет код оператора в схему исполнения. |
void |
run()
Данный метод представляет собственно вызов оператора. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WhileOperator
public WhileOperator(Expression condition,
Operator operator)
run
public void run()
throws ParserException
- Description copied from interface:
Operator
- Данный метод представляет собственно вызов оператора.
- Specified by:
run
in interface Operator
- Overrides:
run
in class IfOperator
- Throws:
ParserException
generate
public void generate(Execution execution)
- Description copied from interface:
Operator
- Вставляет код оператора в схему исполнения.
- Specified by:
generate
in interface Operator
- Overrides:
generate
in class IfOperator