|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pascalinterpreter.Operator pascalinterpreter.BinaryOperator pascalinterpreter.operators.Arithmetic pascalinterpreter.operators.Multiple
Represents a singleton.
Field Summary | |
private static Multiple |
instance
Holds singleton instance |
Fields inherited from class pascalinterpreter.Operator |
OP_REG_VAR_NAME |
Constructor Summary | |
private |
Multiple()
prevents instantiation |
Method Summary | |
protected double |
compute(double opL,
double opR)
Metoda oblicza wartosc wyrazenia. |
static Multiple |
getInstance()
Returns the singleton instance. |
Methods inherited from class pascalinterpreter.operators.Arithmetic |
execute |
Methods inherited from class pascalinterpreter.BinaryOperator |
execInitialize, isPossible, makeConversion, parseDouble |
Methods inherited from class pascalinterpreter.Operator |
getRegistry, setRegistry, setRegistry, setRegistry, setRegistry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Multiple instance
Constructor Detail |
private Multiple()
Method Detail |
public static Multiple getInstance()
protected double compute(double opL, double opR)
Arithmetic
compute
in class Arithmetic
opL
- - lewy operandopR
- - prawy operand
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |