Class Response.ProofResponse

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

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

    • ProofResponse

      public ProofResponse(ISexpr proof)
  • Method Details

    • proof

      public ISexpr proof()
      Specified by:
      proof in interface IResponse.IProofResponse
    • 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