com.ssv.test.airbase.contest.operators
Class WhileOperator

java.lang.Object
  extended by com.ssv.test.airbase.contest.operators.IfOperator
      extended by com.ssv.test.airbase.contest.operators.WhileOperator
All Implemented Interfaces:
Operator

public class WhileOperator
extends IfOperator

Оператор, реализующий цикл


                while(condition) {
                        operator1;
                } 
 

Author:
Sergey Siryk

Constructor Summary
WhileOperator(Expression condition, Operator operator)
           
 
Method Summary
 void generate(Execution execution)
          Вставляет код оператора в схему исполнения.
 void run()
          Данный метод представляет собственно вызов оператора.
 
Methods inherited from class com.ssv.test.airbase.contest.operators.IfOperator
getCondition, getElse, getOperator
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhileOperator

public WhileOperator(Expression condition,
                     Operator operator)
Method Detail

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