Package compilation.analysis.syntax
Class LoopStatement
- java.lang.Object
-
- compilation.analysis.syntax.LoopStatement
-
-
Constructor Summary
Constructors Constructor Description LoopStatement(Token loopToken, Expression lowerBound, Token toToken, Expression upperBound, Statement body)Constructs a LoopStatement object, initialised with the statements contents.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface compilation.analysis.syntax.Statement
getChildren, getSpan, getStatementType
-
-
-
-
Constructor Detail
-
LoopStatement
public LoopStatement(Token loopToken, Expression lowerBound, Token toToken, Expression upperBound, Statement body)
Constructs a LoopStatement object, initialised with the statements contents.A SourceSpan containing the range of the statement is automatically generated, as well as a LinkedList of its children.
- Parameters:
loopToken- The loop TokenlowerBound- The lower bound ExpressiontoToken- The to TokenupperBound- The upper bound Expressionbody- The Statement to be run in the loop body
-
-