Class MockCompilerIssues

    • Method Detail

      • recordCaptureIssues_repeated

        public void recordCaptureIssues_repeated​(int repetitions)
        Records a number of capturing the CompilerIssue instances.
        Parameters:
        repetitions - Number of repetitions.
      • recordIssue

        public void recordIssue​(java.lang.String nodeName,
                                java.lang.Class<? extends Node> nodeClass,
                                java.lang.String issueDescription,
                                CompilerIssue... capturedIssues)
        Records an issue against a Node.
        Parameters:
        nodeName - Name of the Node.
        nodeClass - Class of the Node reporting the issue.
        issueDescription - Expected issue description.
        capturedIssues - Captured CompilerIssue instances.
      • recordIssue

        public void recordIssue​(java.lang.String nodeName,
                                java.lang.Class<? extends Node> nodeClass,
                                java.lang.String issueDescription,
                                java.lang.Throwable cause)
        Records an issue against a Node.
        Parameters:
        nodeName - Name of the Node.
        nodeClass - Class of the Node reporting the issue.
        issueDescription - Expected issue description.
        cause - Expected cause.
      • recordIssueRegex

        public void recordIssueRegex​(java.lang.String nodeName,
                                     java.lang.Class<? extends Node> nodeClass,
                                     java.lang.String issueDescription,
                                     CompilerIssue... capturedIssues)
        Records an issue against a Node.
        Parameters:
        nodeName - Name of the Node.
        nodeClass - Class of the Node reporting the issue.
        issueDescription - Expected issue description as regular expression.
        capturedIssues - Captured CompilerIssue instances.
      • recordIssueRegex

        public void recordIssueRegex​(java.lang.String nodeName,
                                     java.lang.Class<? extends Node> nodeClass,
                                     java.lang.String issueDescription,
                                     java.lang.Throwable cause)
        Records an issue against a Node.
        Parameters:
        nodeName - Name of the Node.
        nodeClass - Class of the Node reporting the issue.
        issueDescription - Expected issue description as regular expression.
        cause - Expected cause.
      • recordIssue

        public void recordIssue​(java.lang.String issueDescription,
                                CompilerIssue... capturedIssues)
        Records a top level issue.
        Parameters:
        issueDescription - Expected issue description.
        capturedIssues - Captured CompilerIssue instances.
      • recordIssue

        public void recordIssue​(java.lang.String issueDescription,
                                java.lang.Throwable cause)
        Records a top level issue.
        Parameters:
        issueDescription - Expected issue description.
        cause - Expected cause.
      • addIssue

        public CompileError addIssue​(Node node,
                                     java.lang.String issueDescription,
                                     java.lang.Throwable cause)
        Description copied from interface: CompilerIssues
        Adds an issue regarding a particular Node.
        Specified by:
        addIssue in interface CompilerIssues
        Parameters:
        node - Node.
        issueDescription - Description of the issue.
        cause - Cause of the issue.
        Returns:
        CompileError to be used in throw statement when adding CompilerIssue to avoid further compiling of the Node.