Package jminusminus
Class JForStatement
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JForStatement
The AST node for a for-statement.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJForStatement(int line, ArrayList<JStatement> init, JExpression condition, ArrayList<JStatement> update, JStatement body) Constructs an AST node for a for-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- 
JForStatementpublic JForStatement(int line, ArrayList<JStatement> init, JExpression condition, ArrayList<JStatement> update, JStatement body) Constructs an AST node for a for-statement.- Parameters:
- line- line in which the for-statement occurs in the source file.
- init- the initialization.
- condition- the test expression.
- update- the update.
- body- the body.
 
 
- 
- 
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.
 
-