java.lang.Object
simula.compiler.syntaxClass.statement.ForStatement.ForListElement
simula.compiler.syntaxClass.statement.ForStatement.WhileElement
- Enclosing class:
ForStatement
Utility class: For-list While element.
-
Field Summary
Fields inherited from class simula.compiler.syntaxClass.statement.ForStatement.ForListElement
expr1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Perform semantic checking.void
Perform simplified JavaCoding.Edit Java source code for this ForListElement.Checks if this ForListElement can be optimized.toString()
-
Field Details
-
expr2
The second expression.
-
-
Constructor Details
-
WhileElement
Create a new WhileElement.- Parameters:
expr1
- first expressionexpr2
- second expression
-
-
Method Details
-
doChecking
public void doChecking()Description copied from class:ForStatement.ForListElement
Perform semantic checking.- Overrides:
doChecking
in classForStatement.ForListElement
-
edCode
Description copied from class:ForStatement.ForListElement
Edit Java source code for this ForListElement.- Overrides:
edCode
in classForStatement.ForListElement
- Parameters:
classIdent
- Java class identifierxType
- control variable's type- Returns:
- the resulting Java source code for this ForListElement
-
isOptimizable
Description copied from class:ForStatement.ForListElement
Checks if this ForListElement can be optimized.- Overrides:
isOptimizable
in classForStatement.ForListElement
- Returns:
- this ForListElement if it can be optimized
-
doSimplifiedJavaCoding
public void doSimplifiedJavaCoding()Description copied from class:ForStatement.ForListElement
Perform simplified JavaCoding.- Overrides:
doSimplifiedJavaCoding
in classForStatement.ForListElement
-
toString
- Overrides:
toString
in classForStatement.ForListElement
-