Class Response.AssertionsResponse

All Implemented Interfaces:
INode, IPos.IPosable, IResponse, IResponse.IAssertionsResponse
Enclosing class:
Response

public static class Response.AssertionsResponse extends Pos.Printable implements IResponse.IAssertionsResponse
Implements the IResponse.IAssertionsResponse interface
  • Constructor Details

    • AssertionsResponse

      public AssertionsResponse(List<IExpr> assertions)
  • Method Details

    • assertions

      public List<IExpr> assertions()
      Specified by:
      assertions in interface IResponse.IAssertionsResponse
    • isOK

      public boolean isOK()
      Description copied from interface: IResponse
      Returns true if the response is a SUCCESS response
      Specified by:
      isOK in interface IResponse
    • isError

      public boolean isError()
      Description copied from interface: IResponse
      Returns true if the response is an error response
      Specified by:
      isError in interface IResponse
    • 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