|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pascalinterpreter.DataType pascalinterpreter.datatypes.PointerType pascalinterpreter.datatypes.PointInt
Represents a singleton.
Field Summary | |
private static PointInt |
instance
Holds singleton instance |
Fields inherited from class pascalinterpreter.datatypes.PointerType |
|
Constructor Summary | |
private |
PointInt()
prevents instantiation |
Method Summary | |
static PointInt |
getInstance()
Returns the singleton instance. |
DataType |
getReferentType()
Metoda podaje jaki typ zmiennych jest wskazywany przez konkretny typ wskaźnikowy. |
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.datatypes.PointerType |
checkFormat, getEmptyValue |
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 static PointInt instance
Constructor Detail |
private PointInt()
Method Detail |
public static PointInt getInstance()
public DataType getReferentType()
PointerType
getReferentType
in class PointerType
public DataType makeConversion(DataType secondType)
DataType
makeConversion
in class DataType
secondType
- - drugi typ danych.
public boolean isPossibleAssign(DataType type)
DataType
isPossibleAssign
in class DataType
type
- - sprawdzany typ.
public boolean isPossible(Operator operator)
DataType
isPossible
in class PointerType
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |