Class BoxImport

All Implemented Interfaces:
BoxVisitable

public class BoxImport extends BoxStatement
AST Node representing an import statement
  • Constructor Details

    • BoxImport

      public BoxImport(BoxExpression expression, BoxIdentifier alias, Position position, String sourceText)
      Creates the AST node
      Parameters:
      expression - argument expression to assert
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details

    • getExpression

      public BoxExpression getExpression()
    • getAlias

      public BoxIdentifier getAlias()
    • setExpression

      public void setExpression(BoxExpression expression)
    • setAlias

      public void setAlias(BoxIdentifier alias)
    • 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