Package iota
Class IIfStatement
java.lang.Object
iota.IAST
iota.IStatement
iota.IIfStatement
The AST node for an if-statement.
-
Field Summary
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsConstructorDescriptionIIfStatement
(int line, IExpression condition, IStatement thenPart, IStatement elsePart) Constructs an AST node for an if-statement. -
Method Summary
Modifier and TypeMethodDescriptionPerforms second phase of semantic analysis on this AST and returns the (possibly modified) AST.void
Performs code generation for this AST.void
toJSON
(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class iota.IAST
line, preAnalyze
-
Constructor Details
-
IIfStatement
Constructs 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
-
analyze
Performs second phase of semantic analysis on this AST and returns the (possibly modified) AST. -
codegen
Performs code generation for this AST. -
toJSON
Stores information about this AST in JSON format.
-