Class BoxScriptIsland

All Implemented Interfaces:
BoxVisitable

public class BoxScriptIsland extends BoxStatement
An island of script code within a template
  • Constructor Details

    • BoxScriptIsland

      public BoxScriptIsland(List<BoxStatement> statements, Position position, String sourceText)
      Creates an AST for a block of statements
      Parameters:
      statements - list of the statements nodes
      position - position within the source code
      sourceText - source code
      See Also:
  • Method Details

    • getStatements

      public List<BoxStatement> getStatements()
    • setStatements

      public void setStatements(List<BoxStatement> statements)
    • toMap

      public Map<String,Object> toMap()
      Overrides:
      toMap in class BoxNode
    • accept

      public void accept(VoidBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for visitor support.
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      Description copied from interface: BoxVisitable
      Accept method for replacing visitor support. Each accept returns the node, or a replacement node.
      Parameters:
      v - the visitor implementation