Package org.gradle.profiler.mutations
Class AbstractDelegateFileMutator
java.lang.Object
org.gradle.profiler.mutations.AbstractFileChangeMutator
org.gradle.profiler.mutations.AbstractDelegateFileMutator
- All Implemented Interfaces:
BuildMutator
- Direct Known Subclasses:
ApplyAbiChangeToSourceFileMutator,ApplyNonAbiChangeToSourceFileMutator
-
Field Summary
Fields inherited from class org.gradle.profiler.mutations.AbstractFileChangeMutator
sourceFileFields inherited from interface org.gradle.profiler.BuildMutator
NOOP -
Method Summary
Modifier and TypeMethodDescriptionvoidafterBuild(BuildContext context, Throwable error) Runs after each iteration of the build has finished.voidafterCleanup(BuildContext context, Throwable error) Runs after each iteration of cleanup has finished.voidafterScenario(ScenarioContext context) Runs after the last iteration of the scenario has finished.protected voidapplyChangeTo(BuildContext context, StringBuilder text) voidbeforeBuild(BuildContext context) Runs before starting an iteration of the build, after any potential cleanup has finished.voidbeforeCleanup(BuildContext context) Runs before each iteration if cleanup tasks are declared.voidbeforeScenario(ScenarioContext context) Runs before the first iteration of the scenario.protected abstract AbstractFileChangeMutatorgetFileChangeMutator(File sourceFile) Methods inherited from class org.gradle.profiler.mutations.AbstractFileChangeMutator
revert, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gradle.profiler.BuildMutator
validate
-
Method Details
-
getFileChangeMutator
-
applyChangeTo
- Specified by:
applyChangeToin classAbstractFileChangeMutator
-
beforeScenario
Description copied from interface:BuildMutatorRuns before the first iteration of the scenario.- Specified by:
beforeScenarioin interfaceBuildMutator- Overrides:
beforeScenarioin classAbstractFileChangeMutator
-
beforeCleanup
Description copied from interface:BuildMutatorRuns before each iteration if cleanup tasks are declared. -
afterCleanup
Description copied from interface:BuildMutatorRuns after each iteration of cleanup has finished. -
beforeBuild
Description copied from interface:BuildMutatorRuns before starting an iteration of the build, after any potential cleanup has finished.- Specified by:
beforeBuildin interfaceBuildMutator- Overrides:
beforeBuildin classAbstractFileChangeMutator
-
afterBuild
Description copied from interface:BuildMutatorRuns after each iteration of the build has finished. -
afterScenario
Description copied from interface:BuildMutatorRuns after the last iteration of the scenario has finished.- Specified by:
afterScenarioin interfaceBuildMutator- Overrides:
afterScenarioin classAbstractFileChangeMutator
-