|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpascalinterpreter.Operator
pascalinterpreter.BinaryOperator
pascalinterpreter.operators.Assign
Represents a singleton.
| Field Summary | |
private static Assign |
instance
Holds singleton instance |
| Fields inherited from class pascalinterpreter.Operator |
OP_REG_VAR_NAME |
| Constructor Summary | |
private |
Assign()
prevents instantiation |
| Method Summary | |
void |
execute(Variable operandL,
Variable operandR)
|
static Assign |
getInstance()
Returns the singleton instance. |
boolean |
isPossible(DataType type1,
DataType type2)
Sprawdza, czy operacja jest możliwa z użyciem tego typu operandów. |
| Methods inherited from class pascalinterpreter.BinaryOperator |
execInitialize, 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 Assign instance
| Constructor Detail |
private Assign()
| Method Detail |
public static Assign getInstance()
public void execute(Variable operandL,
Variable operandR)
throws RuntimeException,
InternalException
execute in class BinaryOperatorRuntimeException
InternalException
public boolean isPossible(DataType type1,
DataType type2)
BinaryOperator
isPossible in class BinaryOperatortype1 - - typ operandu L.type2 - - typ operandu R.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||