|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpascalinterpreter.DataType
pascalinterpreter.datatypes.Real
Represents a singleton.
| Field Summary | |
private java.lang.String |
EMPTY_VALUE
|
private static Real |
instance
Holds singleton instance |
| Constructor Summary | |
private |
Real()
prevents instantiation |
| Method Summary | |
boolean |
checkFormat(java.lang.String value)
Sprawdza, czy podana wartość może zostać przypisana do zmiennej danego typu typu. |
java.lang.String |
getEmptyValue()
Zwraca wartość pustą dla konkretnego typu. |
static Real |
getInstance()
Returns the singleton instance. |
boolean |
isPossible(Operator operator)
Metoda sprawdza, czy możliwe jest wykonanie na zmiennych tego typy, jakiejś operacji. |
boolean |
isPossibleAssign(DataType type)
Metoda sprawdza, czy możliwe jest przypisanie do zmiennej danego typu, zmiennej typu przekazanego w argumencie. |
DataType |
makeConversion(DataType secondType)
Wykonuje domyślną konwersję między konkretnym typem danych i typem przekazanym, jeżeli taka jest możliwa. |
java.lang.String |
toString()
|
| Methods inherited from class pascalinterpreter.DataType |
isPossibleConversion |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final java.lang.String EMPTY_VALUE
private static Real instance
| Constructor Detail |
private Real()
| Method Detail |
public boolean checkFormat(java.lang.String value)
DataType
checkFormat in class DataTypevalue - - sprawdzana wartość.
public static Real getInstance()
public java.lang.String getEmptyValue()
DataType
getEmptyValue in class DataTypepublic DataType makeConversion(DataType secondType)
DataType
makeConversion in class DataTypesecondType - - drugi typ danych.
public boolean isPossibleAssign(DataType type)
DataType
isPossibleAssign in class DataTypetype - - sprawdzany typ.
public boolean isPossible(Operator operator)
DataType
isPossible in class DataTypeoperator - - sprawdzany operator.
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||