Class SMTExpr.Error

All Implemented Interfaces:
IAttributeValue, IExpr, IExpr.IError, INode, IPos.IPosable, IResponse
Enclosing class:
SMTExpr

public static class SMTExpr.Error extends Pos.AbstractExpr implements IExpr.IError
Represents an expression-level error node inserted during parsing to allow error recovery.
  • Field Details

    • message

      protected String message
  • Constructor Details

    • Error

      public Error(String msg)
      Creates an error expression node with the given informational message.
  • Method Details

    • value

      public String value()
      Returns the error message
      Specified by:
      value in interface IExpr.IError
    • accept

      public <T> T accept(IVisitor<T> v) throws IVisitor.VisitorException
      Description copied from interface: INode
      The accept method corresponding to IVisitor, to be implemented in each subclass as { return v.visit(this); }
      Specified by:
      accept in interface INode
      Type Parameters:
      T - the return type desired from the visit methods
      Parameters:
      v - the visitor class
      Returns:
      the value returned by the visit method
      Throws:
      IVisitor.VisitorException