Interface CompilerIssues

    • Method Detail

      • captureIssues

        <R> IssueCapture<R> captureIssues​(java.util.function.Supplier<R> supplier)
        Captures CompilerIssue instances.
        Type Parameters:
        R - Return type of Supplier logic.
        Parameters:
        supplier - Supplier of code to capture CompilerIssue within.
        Returns:
        IssueCapture.
      • addIssue

        CompileError addIssue​(Node node,
                              java.lang.String issueDescription,
                              CompilerIssue... causes)
        Adds an issue regarding a particular Node.
        Parameters:
        node - Node.
        issueDescription - Description of the issue.
        causes - Possible CompilerIssue instances causing this issue.
        Returns:
        CompileError to be used in throw statement when adding CompilerIssue to avoid further compiling of the Node.
        Throws:
        java.lang.Error - If fail compile fast.
      • addIssue

        CompileError addIssue​(Node node,
                              java.lang.String issueDescription,
                              java.lang.Throwable cause)
        Adds an issue regarding a particular Node.
        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.
        Throws:
        java.lang.Error - If fail compile fast.