|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Variable | |
pascalinterpreter | |
pascalinterpreter.analysis | |
pascalinterpreter.controlstatements | |
pascalinterpreter.iooperations | |
pascalinterpreter.operators |
Uses of Variable in pascalinterpreter |
Subclasses of Variable in pascalinterpreter | |
class |
Constant
|
class |
DynamicVariable
|
Fields in pascalinterpreter declared as Variable | |
private Variable |
BinaryOperation.secondOperand
|
private Variable |
IoOperation.variable
|
protected Variable |
Operation.operand
|
private Variable |
Program.registry
Rejestr programu - wykorzystywany np. przez operatory, do tymczasowego umieszczania wyników operacji. |
Methods in pascalinterpreter that return Variable | |
protected Variable |
BinaryOperation.getSecondOperand()
|
protected Variable[] |
BinaryOperator.makeConversion(Variable operand0,
Variable operand1)
Metoda wykonuje, jeżeli jest możliwa, konwersje operandów do wspólnego typu. |
protected Variable[] |
BinaryOperator.execInitialize(Variable operandL,
Variable operandR)
Metoda pomocnicza - sprawdza typy, oraz wykonuje konwersję do wspólnego typu dla obu operandów. |
protected Variable |
ControlStatement.getRegistry()
Metoda umożliwia odczyt z rejestru klasom potomnym. |
protected Variable |
IoOperation.getVariable()
|
protected Variable |
Operation.getOperand()
|
protected Variable |
Operator.getRegistry()
Odczytuje wartość z rejestru programu. |
Variable |
Program.getVariable(java.lang.String name)
Metoda wyszukuje wśród zmiennych globalnych, zmienną o podanej nazwie. |
(package private) Variable |
Program.getRegistry()
Zwraca zawartość rejestru oraz czyści rejestr programu użytkownika. |
Variable |
Variable.makeConversion(DataType newType)
Metoda wykonuje, o ile jest możliwa, konwersję zmiennej do nowego typu i zwraca nowopowstałą zmienną (nie jest zmieniana zmienna wyjściowa !!!). |
Methods in pascalinterpreter with parameters of type Variable | |
private void |
BinaryOperation.checkOperator(Variable operandL,
BinaryOperator operator,
Variable operandR)
Metoda sprawdza, czy operator będzie mógł pracować z tego typu zmiennymi. |
abstract void |
BinaryOperator.execute(Variable operandL,
Variable operandR)
|
protected Variable[] |
BinaryOperator.makeConversion(Variable operand0,
Variable operand1)
Metoda wykonuje, jeżeli jest możliwa, konwersje operandów do wspólnego typu. |
protected double[] |
BinaryOperator.parseDouble(Variable[] operands)
Wykonuje, jeżeli to możliwe, parsowanie wartości operandów (które są reprezentowane przez typ String) do liczb typu double. |
protected Variable[] |
BinaryOperator.execInitialize(Variable operandL,
Variable operandR)
Metoda pomocnicza - sprawdza typy, oraz wykonuje konwersję do wspólnego typu dla obu operandów. |
protected void |
IoOperation.setVariable(Variable variable)
|
protected void |
Operation.checkType(Variable operand,
Operator operator)
Metoda sprawdza, czy podany operator jest dopuszczalny dla zmiennej podanego typu. |
void |
Program.addVariable(Variable var)
Metoda dodaje zmienną do zmiennych globalnych programu. |
void |
Program.remVariable(Variable var)
Metoda usuwa wskazaną zmienną ze zbioru zmiennych globalnych. |
(package private) void |
Program.setRegistry(Variable var)
Wstawia do rejestru zmienną. |
private void |
UnaryOperation.checkOperator(Variable operand,
UnaryOperator operator)
|
abstract void |
UnaryOperator.execute(Variable operand)
Metoda wykonuje operację na operandzie. |
protected void |
UnaryOperator.execInitialize(Variable operand)
Metoda sprawdza typy operandu. |
Constructors in pascalinterpreter with parameters of type Variable | |
BinaryOperation(Variable operandL,
BinaryOperator operator,
Variable operandR)
|
|
UnaryOperation(Variable operand,
UnaryOperator operator)
|
Uses of Variable in pascalinterpreter.analysis |
Methods in pascalinterpreter.analysis that return Variable | |
private Variable |
Compiler.getVariable(java.lang.String name)
|
Uses of Variable in pascalinterpreter.controlstatements |
Methods in pascalinterpreter.controlstatements with parameters of type Variable | |
private void |
For.checkParametrs(Variable counter,
Variable initValue,
Variable maxValue)
Metoda sprawdza poprawność typów dla parametrów pętli for. |
private BinaryOperation |
For.createInitOperation(Variable counter,
Variable initValue)
|
private BinaryOperation |
For.createControlCondition(Variable counter,
Variable maxValue)
|
private BinaryOperation |
For.createIncrementOperation(Variable counter)
|
private UnaryOperation |
For.createAssignRegistryOperation(Variable counter)
|
Constructors in pascalinterpreter.controlstatements with parameters of type Variable | |
For(Variable counter,
Variable initValue,
Variable maxValue,
Block block)
Konstruktor pętli For. |
Uses of Variable in pascalinterpreter.iooperations |
Constructors in pascalinterpreter.iooperations with parameters of type Variable | |
Read(Variable variable)
|
|
Readln(Variable variable)
|
|
Write(Variable variable)
|
|
Writeln(Variable variable)
|
Uses of Variable in pascalinterpreter.operators |
Methods in pascalinterpreter.operators with parameters of type Variable | |
void |
Add.execute(Variable operandL,
Variable operandR)
|
void |
Arithmetic.execute(Variable operandL,
Variable operandR)
|
void |
Assign.execute(Variable operandL,
Variable operandR)
|
void |
AssignRegistry.execute(Variable operand)
|
void |
Dispose.execute(Variable operand)
|
void |
Equal.execute(Variable operandL,
Variable operandR)
|
protected boolean |
Memory.isEmpty(Variable variable)
Metoda sprawdza, czy zmienna wskaźnikowa jest pusta (ma wartość nil). |
void |
New.execute(Variable operand)
|
void |
NotEqual.execute(Variable operandL,
Variable operandR)
|
void |
Relational.execute(Variable operandL,
Variable operandR)
|
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |