Package iota
Class IWhileStatement
java.lang.Object
iota.IAST
iota.IStatement
iota.IWhileStatement
The AST node for a while-statement.
-
Field Summary
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsConstructorDescriptionIWhileStatement
(int line, IExpression condition, IStatement body) Constructs an AST node for a while-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
-
IWhileStatement
Constructs an AST node for a while-statement.- Parameters:
line
- line in which the while-statement occurs in the source file.condition
- test expression.body
- the body.
-
-
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.
-