|
|||||||||||
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.New
Represents a singleton.
Field Summary | |
private static New |
instance
Holds singleton instance |
Fields inherited from class pascalinterpreter.Operator |
OP_REG_VAR_NAME |
Constructor Summary | |
private |
New()
prevents instantiation |
Method Summary | |
void |
execute(Variable operand)
Metoda wykonuje operację na operandzie. |
static New |
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 New instance
Constructor Detail |
private New()
Method Detail |
public static New getInstance()
public void execute(Variable operand) throws InternalException, RuntimeException
UnaryOperator
execute
in class UnaryOperator
operand
- - 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 |