|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpascalinterpreter.Operator
pascalinterpreter.UnaryOperator
pascalinterpreter.operators.Memory
pascalinterpreter.operators.Dispose
Represents a singleton.
| Field Summary | |
private static Dispose |
instance
Holds singleton instance |
| Fields inherited from class pascalinterpreter.Operator |
OP_REG_VAR_NAME |
| Constructor Summary | |
private |
Dispose()
prevents instantiation |
| Method Summary | |
void |
execute(Variable operand)
Metoda wykonuje operację na operandzie. |
static Dispose |
getInstance()
Returns the singleton instance. |
| Methods inherited from class pascalinterpreter.operators.Memory |
isEmpty, isPossible |
| Methods inherited from class pascalinterpreter.UnaryOperator |
execInitialize |
| 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 Dispose instance
| Constructor Detail |
private Dispose()
| Method Detail |
public static Dispose getInstance()
public void execute(Variable operand)
throws InternalException,
RuntimeException
UnaryOperator
execute in class UnaryOperatoroperand - - zmienna, na której ma zostać wykonana operacja.
RuntimeException - - Może wystąpić jeżeli w programie użytkownika występują niedozwolone operacje.
InternalException - - Może wystąpić tylko podczas niepoprawnej pracy interpretera.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||