|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpascalinterpreter.Variable
pascalinterpreter.Constant
| Field Summary | |
private static int |
count
Licznik automatycznie utworzonych stałych. |
private boolean |
init
Stałej można przypisać wartość tylko raz. |
private static java.lang.String |
NAME_SUFFIX
Stała, określająca końcową część nazwy atomatycznie tworzonych stałych. |
| Fields inherited from class pascalinterpreter.Variable |
|
| Constructor Summary | |
Constant(DataType type)
Tworzy obiekt reprezentujący stałą, automatycznie generuje jej nazwę, oraz inicjuje atrybuty. |
|
Constant(DataType type,
java.lang.String name)
Tworzy obiekt reprezentujący stałą, sprawdza poprawność nazwy, oraz inicjuje atrybuty. |
|
| Method Summary | |
private static java.lang.String |
genName()
Metoda automatycznie generuje unikalną nazwę dla stałej. |
void |
setValue(java.lang.String string)
Metoda umożliwia zainicjowanie stałej. |
| Methods inherited from class pascalinterpreter.Variable |
getName, getPointerValue, getType, getValue, makeConversion, setPointerValue, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final java.lang.String NAME_SUFFIX
private static int count
private boolean init
| Constructor Detail |
public Constant(DataType type,
java.lang.String name)
throws AnalyseException
type - - typ tworzonej stałejname - - nazwa tworzonej stałej
AnalyseException - - wyjątek generowany, jeżeli nazwa zmiennej jest niepoprawna.public Constant(DataType type)
type - - typ tworzonej stałej
AnalyseException - - wyjątek generowany, jeżeli nazwa zmiennej jest niepoprawna.| Method Detail |
public void setValue(java.lang.String string)
throws InternalException
setValue in class Variablestring - - wartość zmiennej.
InternalException - - wyjątek generowany przy próbie przypisania do zmiennej niepoprawnej wartości.Variable.setValue(java.lang.String)private static java.lang.String genName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||