Class BoxScriptIsland
java.lang.Object
ortus.boxlang.compiler.ast.BoxNode
ortus.boxlang.compiler.ast.BoxStatement
ortus.boxlang.compiler.ast.statement.BoxScriptIsland
- All Implemented Interfaces:
BoxVisitable
An island of script code within a template
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBoxScriptIsland(List<BoxStatement> statements, Position position, String sourceText) Creates an AST for a block of statements -
Method Summary
Modifier and TypeMethodDescriptionAccept method for replacing visitor support.voidAccept method for visitor support.voidsetStatements(List<BoxStatement> statements) 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
-
BoxScriptIsland
Creates an AST for a block of statements- Parameters:
statements- list of the statements nodesposition- position within the source codesourceText- source code- See Also:
-
-
Method Details
-
getStatements
-
setStatements
-
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
-