Class ConnectionDoPart
java.lang.Object
simula.compiler.syntaxClass.SyntaxClass
simula.compiler.syntaxClass.statement.ConnectionDoPart
- Direct Known Subclasses:
ConnectionWhenPart
Utility class to hold the single Connection do-part.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe associated connection block.(package private) ConnectionStatement
The associated connection statement.Fields inherited from class simula.compiler.syntaxClass.SyntaxClass
CHECKED, lineNumber, OBJECT_SEQU
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Default constructor used by Attribute File I/O(package private)
ConnectionDoPart
(ConnectionStatement connectionStatement, ConnectionBlock connectionBlock, Statement statement) Create a new do-part. -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildByteCode
(CodeBuilder codeBuilder) Build Java ClassFile ByteCode.void
Perform semantic checking.void
doCoding
(boolean first) Perform Java coding.void
Utility print method.static ConnectionDoPart
Read and return a ConnectionDoPart object.toString()
void
Write a SyntaxClass object to a AttributeOutputStream.Methods inherited from class simula.compiler.syntaxClass.SyntaxClass
ASSERT_SEMANTICS_CHECKED, doDeclarationCoding, doJavaCoding, edIndent, edTreeIndent, IS_SEMANTICS_CHECKED, print, SET_SEMANTICS_CHECKED, setLineNumber, toJavaCode
-
Field Details
-
connectionStatement
ConnectionStatement connectionStatementThe associated connection statement. -
connectionBlock
The associated connection block.
-
-
Constructor Details
-
ConnectionDoPart
ConnectionDoPart(ConnectionStatement connectionStatement, ConnectionBlock connectionBlock, Statement statement) Create a new do-part.- Parameters:
connectionStatement
- The owner.connectionBlock
- The associated connection blockstatement
- the statement after DO
-
ConnectionDoPart
protected ConnectionDoPart()Default constructor used by Attribute File I/O
-
-
Method Details
-
doChecking
-
doCoding
public void doCoding(boolean first) Perform Java coding.- Parameters:
first
- true if coding the first when-part
-
buildByteCode
Description copied from class:SyntaxClass
Build Java ClassFile ByteCode.- Overrides:
buildByteCode
in classSyntaxClass
- Parameters:
codeBuilder
- the codeBuilder to use.
-
printTree
Utility print method.- Overrides:
printTree
in classSyntaxClass
- Parameters:
indent
- the indenthead
- the head of the tree.
-
toString
-
writeObject
Description copied from class:SyntaxClass
Write a SyntaxClass object to a AttributeOutputStream.- Overrides:
writeObject
in classSyntaxClass
- Parameters:
oupt
- the AttributeOutputStream to write to.- Throws:
IOException
- if something went wrong.
-
readObject
Read and return a ConnectionDoPart object.- Parameters:
inpt
- the AttributeInputStream to read from- Returns:
- the ConnectionDoPart object read from the stream.
- Throws:
IOException
- if something went wrong.
-