Class BoxForIndex
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxStatement
ortus.boxlang.compiler.ast.statement.BoxForIndex
- All Implemented Interfaces:
BoxVisitable
AST Node representing a for statement like:
for(variable;expression;expression) body-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxForIndex(String label, BoxExpression initializer, BoxExpression condition, BoxExpression step, BoxStatement body, Position position, String sourceText) -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.voidAccept method for visitor support.getBody()getLabel()Gets the label of the statementgetStep()voidsetBody(BoxStatement body) voidsetCondition(BoxExpression condition) voidsetInitializer(BoxExpression initializer) voidSets the label of the statementvoidsetStep(BoxExpression step) toMap()Methods inherited from class ortus.boxlang.compiler.ast.BoxNode
addComment, associateComments, endsOnSameLineAs, enumToMap, getAncestors, getChildren, getComments, getDescendants, getDescendantsOfType, getDescendantsOfType, getDescription, getDocComment, getFirstAncestorOfType, getFirstAncestorOfType, getFirstNodeOfType, getFirstNodeOfType, getFirstNodeOfTypes, getParent, getPosition, getSourceText, isAfter, isBefore, isInside, replaceChildren, replaceChildren, setComments, setParent, setPosition, setSourceText, startsOnEndLineOf, toJSON, toString
-
Constructor Details
-
BoxForIndex
public BoxForIndex(String label, BoxExpression initializer, BoxExpression condition, BoxExpression step, BoxStatement body, Position position, String sourceText) - Parameters:
initializer-condition-body-position-sourceText-
-
-
Method Details
-
getInitializer
-
getCondition
-
getStep
-
getBody
-
setInitializer
-
setCondition
-
setStep
-
setBody
-
getLabel
Gets the label of the statement- Returns:
- the label of the statement
-
setLabel
Sets the label of the statement- Parameters:
label- the label of the statement
-
toMap
-
accept
Description copied from interface:BoxVisitableAccept method for visitor support.- Parameters:
v- the visitor implementation
-
accept
Description copied from interface:BoxVisitableAccept method for replacing visitor support. Each accept returns the node, or a replacement node.- Parameters:
v- the visitor implementation
-