Class C_get_info

All Implemented Interfaces:
ICommand, ICommand.Iget_info, INode, IPos.IPosable

public class C_get_info extends Command implements ICommand.Iget_info
Implements the get-info command.
  • Field Details

  • Constructor Details

    • C_get_info

      public C_get_info(IExpr.IKeyword infoflag)
      Constructs a command instance given the keyword
  • Method Details

    • commandName

      public String commandName()
      The command name
      Specified by:
      commandName in interface ICommand
      Specified by:
      commandName in class Command
    • infoflag

      public IExpr.IKeyword infoflag()
      The keyword for the info item to fetch
      Specified by:
      infoflag in interface ICommand.Iget_info
    • parse

      public static C_get_info parse(Parser p) throws IParser.ParserException
      Creates a command instance by parsing the concrete S-expression syntax
      Throws:
      IParser.ParserException
    • execute

      public IResponse execute(ISolver solver)
      Description copied from interface: ICommand
      Executes the command on the given solver; presumes that the command type-checked successfully.
      Specified by:
      execute in interface ICommand
      Parameters:
      solver - the instance of the solver to use (note that solvers have state)
      Returns:
      the result of the command
    • 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