Modifier and Type | Field and Description |
---|---|
(package private) static ClassDeclaration |
ClassDeclaration.boolType
Der interne Basisdatentyp für Wahrheitswerte.
|
(package private) ClassDeclaration |
Declarations.currentClass
Die aktuelle Klasse.
|
(package private) static ClassDeclaration |
ClassDeclaration.intClass
Die Klasse Integer.
|
(package private) static ClassDeclaration |
ClassDeclaration.intType
Der interne Basisdatentyp für Zahlen.
|
(package private) static ClassDeclaration |
ClassDeclaration.nullType
Ein interner Typ für null.
|
(package private) ClassDeclaration |
Program.theClass
Die benutzerdefinierte Klasse.
|
(package private) ClassDeclaration |
Expression.type
Der Typ dieses Ausdrucks.
|
(package private) static ClassDeclaration |
ClassDeclaration.voidType
Ein interner Typ für das Ergebnis von Methoden.
|
Modifier and Type | Method and Description |
---|---|
private ClassDeclaration |
SyntaxAnalysis.classdecl()
Die Methode parsiert eine Klassendeklaration entsprechend der oben angegebenen
Syntax und liefert diese zurück.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
ClassDeclaration.check(ClassDeclaration expected,
Position position)
Die Methode prüft, ob dieser Typ kompatibel mit einem anderen Typ ist.
|
(package private) boolean |
ClassDeclaration.isA(ClassDeclaration expected)
Die Methode prüft, ob dieser Typ kompatibel mit einem anderen Typ ist.
|
(package private) static void |
ClassDeclaration.typeError(ClassDeclaration expected,
Position position)
Die Methode erzeugt eine Ausnahme für einen Typfehler.
|
Constructor and Description |
---|
LiteralExpression(int value,
ClassDeclaration type,
Position position)
Konstruktor.
|
Program(ClassDeclaration theClass)
Konstruktor.
|