IBuilder¶
-
public interface
IBuilder
<P extends IParseUnit, A extends IAnalyzeUnit, AU extends IAnalyzeUnitUpdate, T extends ITransformUnit<?>>¶ Incrementally parses, analyzes, and compiles source files.
Parameters: - <P> – Type of parse units.
- <A> – Type of analyze units.
- <AU> – Type of analyze unit updates.
- <T> – Type of transform units with any input.
Methods¶
build¶
-
IBuildOutput<P, A, AU, T>
build
(BuildInput input, IProgress progress, ICancel cancel)¶ Parses, analyses, and compiles changed resources.
Parameters: - input – Build input.
- progress – Progress reporter used for reporting build progress.
- cancel – Cancellation token for canceling the build.
Throws: - MetaborgRuntimeException – When
input.throwOnErrors
is set to true and errors occur. - InterruptedException – When build is cancelled.
Returns: Result of building.
build¶
-
IBuildOutput<P, A, AU, T>
build
(BuildInput input)¶ Parses, analyzes, and compiles changed resources.
Parameters: - input – Build input.
Throws: - MetaborgRuntimeException – When
input.throwOnErrors
is set to true and errors occur. - InterruptedException – When build is cancelled.
Returns: Result of building.
clean¶
-
void
clean
(CleanInput input, IProgress progress, ICancel cancellation)¶ Cleans derived resources and contexts from given location.
Parameters: - input – Clean input.
- progress – Progress reporter used for reporting clean progress.
- cancellation – Cancellation token for canceling the clean.
Throws: - InterruptedException – When clean is cancelled.
clean¶
-
void
clean
(CleanInput input)¶ Cleans derived resources and contexts from given location.
Parameters: - input – Clean input.
Throws: - InterruptedException – When clean is cancelled.