cviceni9
Class PlusExpr

java.lang.Object
  extended bycviceni9.BinaryExpr
      extended bycviceni9.PlusExpr
All Implemented Interfaces:
Expr

public class PlusExpr
extends BinaryExpr

Třída reprezentující výraz s operátorem plus.

Author:
M. Beneš, FEI VŠB-TU Ostrava

Field Summary
 
Fields inherited from class cviceni9.BinaryExpr
left, right
 
Constructor Summary
PlusExpr(Expr left, Expr right)
          Vytvoří uzel binárního výrazu s operátorem plus.
 
Method Summary
 int eval()
          Provede vyhodnocení výrazu.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlusExpr

public PlusExpr(Expr left,
                Expr right)
Vytvoří uzel binárního výrazu s operátorem plus.

Parameters:
left - levý operand
right - pravý operand
Method Detail

eval

public int eval()
Provede vyhodnocení výrazu.

Returns:
hodnota výrazu