Class WoolInputCommand

    • Constructor Detail

      • WoolInputCommand

        public WoolInputCommand​(String type)
    • Method Detail

      • getType

        public String getType()
      • setType

        public void setType​(String type)
      • getParameters

        public abstract Map<String,​?> getParameters()
        Returns the parameters for this input command to send to the client. This is a map from parameter names to values. A value can be any JSON type. This method should only be called on a command that has already been executed with executeBodyCommand(). This means that any variables in parameter values have already been resolved.
        Returns:
        the parameters for this input command to send to the client
      • getStatementLog

        public abstract String getStatementLog​(WoolVariableStore varStore)
        Returns the string to use in the user statement log in place of this input command. It can use variable values from the specified variable store. This method should only be called on a command that has already been executed with executeBodyCommand(). This means that any variables in parameter values have already been resolved.
        Parameters:
        varStore - the variable store
        Returns:
        the statement log
      • findReplyById

        public WoolReply findReplyById​(int replyId)
        Description copied from class: WoolCommand
        Tries to find a reply with the specified ID within this command. If no such reply is found, this method returns null.
        Specified by:
        findReplyById in class WoolCommand
        Parameters:
        replyId - the reply ID
        Returns:
        the reply or null
      • getNodePointers

        public void getNodePointers​(Set<WoolNodePointer> pointers)
        Description copied from class: WoolCommand
        Retrieves all node pointers that occur in this command and adds them to the specified list.
        Specified by:
        getNodePointers in class WoolCommand
        Parameters:
        pointers - the list to which the node pointers are added