|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rychlik.calculator.StackMachine.MathFunction
com.rychlik.calculator.StackMachine.BinaryMathFunction
public abstract class StackMachine.BinaryMathFunction
Describe class BinaryMathFunction
here.
Constructor Summary | |
---|---|
StackMachine.BinaryMathFunction()
|
Method Summary | |
---|---|
int |
arity()
Describe arity method here. |
abstract double |
eval(double x,
double y)
Describe eval method here. |
void |
execute()
Describe execute method here. |
Methods inherited from class com.rychlik.calculator.StackMachine.MathFunction |
---|
getName, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackMachine.BinaryMathFunction()
Method Detail |
---|
public int arity()
arity
method here.
int
valuepublic void execute() throws ParseException
execute
method here.
ParseException
- if an error occurspublic abstract double eval(double x, double y)
eval
method here.
x
- a double
valuey
- a double
value
double
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |