pascalinterpreter
Class UnaryOperation

java.lang.Object
  extended bypascalinterpreter.Command
      extended bypascalinterpreter.Operation
          extended bypascalinterpreter.UnaryOperation

public class UnaryOperation
extends Operation


Field Summary
private  UnaryOperator operator
           
 
Fields inherited from class pascalinterpreter.Operation
operand
 
Constructor Summary
UnaryOperation(Variable operand, UnaryOperator operator)
           
 
Method Summary
private  void checkOperator(Variable operand, UnaryOperator operator)
           
 void execute()
          Metoda rozpoczyna wykonywanie komendy.
protected  UnaryOperator getOperator()
           
 
Methods inherited from class pascalinterpreter.Operation
checkType, getOperand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operator

private UnaryOperator operator
Constructor Detail

UnaryOperation

public UnaryOperation(Variable operand,
                      UnaryOperator operator)
               throws AnalyseException
See Also:
Object.Object()
Method Detail

getOperator

protected UnaryOperator getOperator()
Returns:

execute

public void execute()
             throws RuntimeException,
                    InternalException
Description copied from class: Command
Metoda rozpoczyna wykonywanie komendy.

Specified by:
execute in class Command
Throws:
RuntimeException - - wyjątek generowany
InternalException

checkOperator

private void checkOperator(Variable operand,
                           UnaryOperator operator)
                    throws AnalyseException
Throws:
AnalyseException