java.lang.Object
simula.compiler.syntaxClass.statement.SwitchStatement.WhenPart
- Enclosing class:
SwitchStatement
Utility class WhenPart.
-
Field Summary
Modifier and TypeFieldDescription(package private) Vector
<SwitchStatement.SwitchInterval> The case key list.(package private) Statement
The statement -
Constructor Summary
ModifierConstructorDescriptionprivate
WhenPart
(Vector<SwitchStatement.SwitchInterval> caseKeyList, Statement statement) Create a new WhenPart. -
Method Summary
-
Field Details
-
caseKeyList
Vector<SwitchStatement.SwitchInterval> caseKeyListThe case key list. -
statement
Statement statementThe statement
-
-
Constructor Details
-
WhenPart
Create a new WhenPart.- Parameters:
caseKeyList
- the case key liststatement
- the statement
-
-
Method Details
-
doCoding
private void doCoding(boolean first) Coding Utility: Edit this when-part.- Parameters:
first
- true if this when-part is the first being edited
-
print
private void print(int indent) Utility method print.- Parameters:
indent
- the indentation
-
edWhen
Utility: Edit when clause.- Returns:
- the resulting string
-
printTree
public void printTree(int indent) -
toString
-