java.lang.Object
simula.compiler.syntaxClass.statement.ConnectionStatement.DoPart
simula.compiler.syntaxClass.statement.ConnectionStatement.WhenPart
- Enclosing class:
ConnectionStatement
Utility class to hold a when-part.
-
Field Summary
Modifier and TypeFieldDescription(package private) ClassDeclaration
The class declaration correspondig to the class identifier.(package private) String
The WHEN class-identifier(package private) boolean
Indicator to signal an impossible when-part.Fields inherited from class simula.compiler.syntaxClass.statement.ConnectionStatement.DoPart
connectionBlock
-
Constructor Summary
ConstructorDescriptionWhenPart
(String classIdentifier, ConnectionBlock connectionBlock, Statement statement) Create a new when-part. -
Method Summary
Methods inherited from class simula.compiler.syntaxClass.statement.ConnectionStatement.DoPart
printTree
-
Field Details
-
classIdentifier
String classIdentifierThe WHEN class-identifier -
classDeclaration
ClassDeclaration classDeclarationThe class declaration correspondig to the class identifier. Set during checking. -
impossibleWhenPart
boolean impossibleWhenPartIndicator to signal an impossible when-part. Set during checking if object-expression is not compatible with the WHEN class.
-
-
Constructor Details
-
WhenPart
Create a new when-part.- Parameters:
classIdentifier
- the WHEN class-identifierconnectionBlock
- The associated connection blockstatement
- the statement after DO
-
-
Method Details
-
doChecking
public void doChecking()Description copied from class:ConnectionStatement.DoPart
Perform semantic checking.- Overrides:
doChecking
in classConnectionStatement.DoPart
-
doCoding
public void doCoding(boolean first) Description copied from class:ConnectionStatement.DoPart
Perform Java coding.- Overrides:
doCoding
in classConnectionStatement.DoPart
- Parameters:
first
- true if coding the first when-part
-
toString
- Overrides:
toString
in classConnectionStatement.DoPart
-