Package jminusminus
Class JSwitchStatement
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JSwitchStatement
The AST node for a switch-statement.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJSwitchStatement(int line, JExpression condition, ArrayList<SwitchStatementGroup> stmtGroup) Constructs an AST node for a switch-statement.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.voidPerforms code generation for this AST.voidtoJSON(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class jminusminus.JASTline, partialCodegen, unescape
- 
Constructor Details- 
JSwitchStatementConstructs an AST node for a switch-statement.- Parameters:
- line- line in which the switch-statement occurs in the source file.
- condition- test expression.
- stmtGroup- list of statement groups.
 
 
- 
- 
Method Details- 
analyzePerforms semantic analysis on this AST and returns the (possibly modified) AST.
- 
codegenPerforms code generation for this AST.
- 
toJSONStores information about this AST in JSON format.
 
-