Package net.officefloor.compile.issues
Interface CompilerIssues
-
- All Known Implementing Classes:
AbstractCompilerIssues
,FailCompilerIssues
,FailTestCompilerIssues
,MockCompilerIssues
,StderrCompilerIssues
public interface CompilerIssues
Notified of issues in compilation of theOfficeFloor
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompileError
addIssue(Node node, java.lang.String issueDescription, java.lang.Throwable cause)
Adds an issue regarding a particularNode
.CompileError
addIssue(Node node, java.lang.String issueDescription, CompilerIssue... causes)
Adds an issue regarding a particularNode
.<R> IssueCapture<R>
captureIssues(java.util.function.Supplier<R> supplier)
CapturesCompilerIssue
instances.
-
-
-
Method Detail
-
captureIssues
<R> IssueCapture<R> captureIssues(java.util.function.Supplier<R> supplier)
CapturesCompilerIssue
instances.- Type Parameters:
R
- Return type ofSupplier
logic.- Parameters:
supplier
-Supplier
of code to captureCompilerIssue
within.- Returns:
IssueCapture
.
-
addIssue
CompileError addIssue(Node node, java.lang.String issueDescription, CompilerIssue... causes)
Adds an issue regarding a particularNode
.- Parameters:
node
-Node
.issueDescription
- Description of the issue.causes
- PossibleCompilerIssue
instances causing this issue.- Returns:
CompileError
to be used inthrow
statement when addingCompilerIssue
to avoid further compiling of theNode
.- 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 particularNode
.- Parameters:
node
-Node
.issueDescription
- Description of the issue.cause
- Cause of the issue.- Returns:
CompileError
to be used inthrow
statement when addingCompilerIssue
to avoid further compiling of theNode
.- Throws:
java.lang.Error
- If fail compile fast.
-
-