/** * Copyright (c): Uwe Schmidt, FH Wedel * * You may study, modify and distribute this source code * FOR NON-COMMERCIAL PURPOSES ONLY. * This copyright message has to remain unchanged. * * Note that this document is provided 'as is', * WITHOUT WARRANTY of any kind either expressed or implied. */ /** * eine abstrakte Klasse fuer binaere Ausdruecke * */ //-------------------- abstract class BinaryExpr extends Expr { // die Operanden protected Expr left; protected Expr right; //-------------------- // der Konstruktor ist protected // da er nur von Subklassen aus aufgerufen wird protected BinaryExpr(Expr left, Expr right) { this.left = left; this.right = right; } } //--------------------