|
|||||||||
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.UnaryMathFunction
public abstract class StackMachine.UnaryMathFunction
Describe class UnaryMathFunction
here.
Constructor Summary | |
---|---|
StackMachine.UnaryMathFunction()
|
Method Summary | |
---|---|
int |
arity()
Describe arity method here. |
abstract double |
eval(double x)
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.UnaryMathFunction()
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)
eval
method here.
x
- a double
value
double
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |