|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rychlik.calculator.StackMachine.PushConstant
public class StackMachine.PushConstant
Push constant on stack.
Constructor Summary | |
---|---|
StackMachine.PushConstant(double value)
Creates a new PushConstant instance. |
Method Summary | |
---|---|
int |
arity()
Describe arity method here. |
void |
execute()
Describe execute method here. |
void |
write(java.io.PrintStream out)
Describe write method here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackMachine.PushConstant(double value)
PushConstant
instance.
value
- a double
valueMethod Detail |
---|
public int arity()
arity
method here.
arity
in interface StackMachine.Instruction
int
valuepublic void execute() throws ParseException
execute
method here.
execute
in interface StackMachine.Instruction
ParseException
- if an error occurspublic void write(java.io.PrintStream out)
write
method here.
write
in interface StackMachine.Instruction
out
- a PrintStream
value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |