Interface Workspace

    • Method Detail

      • getRule

        Optional<? extends Statement> getRule​(String name)
        Returns an Optional reference to a Statement with the specified name in this environment.
        Parameters:
        name - The name of requested rule.
        Returns:
        An Optional with a reference to the requested object or Optional.empty() if the object is not found in this environment.
      • addRule

        void addRule​(Statement statement)
        Add a new rule to this workspace.
        Parameters:
        statement - The rule to add to this workspace.
      • getRules

        List<Statement> getRules()
        Returns:
        A list of all the rules defined in this workspace.