Class BoxNull

All Implemented Interfaces:
IBoxSimpleLiteral, BoxVisitable

public class BoxNull extends BoxExpression implements IBoxSimpleLiteral
AST Node representing a string literal value
  • Constructor Details

    • BoxNull

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

    • getValue

      public Object getValue()
      Specified by:
      getValue in interface IBoxSimpleLiteral
    • isLiteral

      public boolean isLiteral()
      Description copied from class: BoxExpression
      Utility method to detect if an expression node is a terminal Literal
      Overrides:
      isLiteral in class BoxExpression
      Returns:
      true if it is false otherwise
    • 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