Package jminusminus
Class JIfStatement
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JIfStatement
The AST node for an if-statement.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJIfStatement(int line, JExpression condition, JStatement thenPart, JStatement elsePart) Constructs an AST node for an if-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- 
JIfStatementConstructs an AST node for an if-statement.- Parameters:
- line- line in which the if-statement occurs in the source file.
- condition- test expression.
- thenPart- then part.
- elsePart- else part.
 
 
- 
- 
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.
 
-