|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpascalinterpreter.Operator
pascalinterpreter.UnaryOperator
pascalinterpreter.operators.AssignRegistry
Represents a singleton.
| Field Summary | |
private static AssignRegistry |
instance
Holds singleton instance |
| Fields inherited from class pascalinterpreter.Operator |
OP_REG_VAR_NAME |
| Constructor Summary | |
private |
AssignRegistry()
prevents instantiation |
| Method Summary | |
void |
execute(Variable operand)
Metoda wykonuje operację na operandzie. |
static AssignRegistry |
getInstance()
Returns the singleton instance. |
boolean |
isPossible(DataType type)
Metoda sprawdza, czy operacja jest możliwa na takim typie danych. |
| 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 AssignRegistry instance
| Constructor Detail |
private AssignRegistry()
| Method Detail |
public static AssignRegistry getInstance()
public void execute(Variable operand)
throws InternalException
UnaryOperator
execute in class UnaryOperatoroperand - - zmienna, na której ma zostać wykonana operacja.
InternalException - - Może wystąpić tylko podczas niepoprawnej pracy interpretera.public boolean isPossible(DataType type)
UnaryOperator
isPossible in class UnaryOperatortype - - sprawdzany typ danych.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||