KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmock > examples > calculator > ExpressionFactory


1 /* Copyright (c) 2000-2004 jMock.org
2  */

3 package org.jmock.examples.calculator;
4
5
6 public interface ExpressionFactory
7 {
8     Expression newLiteral( double value );
9
10     Expression newAddition( Expression left, Expression right );
11
12     Expression newSubtraction( Expression left, Expression right );
13
14     Expression newMultiplication( Expression left, Expression right );
15
16     Expression newDivision( Expression left, Expression right );
17
18     Expression newPower( Expression left, Expression right );
19
20     Expression newVariableReference( String JavaDoc variableName );
21 }
22
Popular Tags