Class BoxIdentifier

All Implemented Interfaces:
Named, BoxVisitable

public class BoxIdentifier extends BoxExpression implements Named
AST Node representing a switch case statement
  • Constructor Details

    • BoxIdentifier

      public BoxIdentifier(String name, Position position, String sourceText)
      Creates the AST node
      Parameters:
      name - name of the identifier
      position - position of the statement in the source code
      sourceText - source code that originated the Node
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Named
      Return the name of the symbol
      Specified by:
      getName in interface Named
      Returns:
      a String representing the name of the symbol
    • setName

      public void setName(String name)
    • 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.
      Specified by:
      accept in interface BoxVisitable
      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.
      Specified by:
      accept in interface BoxVisitable
      Parameters:
      v - the visitor implementation