Package org.gradle.profiler.mutations
Class ApplyChangeToAndroidLayoutFileMutator
java.lang.Object
org.gradle.profiler.mutations.AbstractFileChangeMutator
org.gradle.profiler.mutations.ApplyChangeToAndroidLayoutFileMutator
- All Implemented Interfaces:
BuildMutator
This class applies a mutation to an Android layout file by adding an extra, hidden view at the bottom of the layout.
It supports both DataBinding layouts (wrapped in
<layout></layout> tags) and traditional Android layouts.
Note: This mutator does not support layouts with a single view in them - it requires a valid ViewGroup to contain the
new view. Attempting to mutate a layout that does not have a ViewGroup as its root element will result in an
invalid layout file.-
Field Summary
Fields inherited from class org.gradle.profiler.mutations.AbstractFileChangeMutator
sourceFileFields inherited from interface org.gradle.profiler.BuildMutator
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyChangeTo(BuildContext context, StringBuilder text) Methods inherited from class org.gradle.profiler.mutations.AbstractFileChangeMutator
afterScenario, beforeBuild, beforeScenario, 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
afterBuild, afterCleanup, beforeCleanup, validate
-
Constructor Details
-
ApplyChangeToAndroidLayoutFileMutator
-
-
Method Details
-
applyChangeTo
- Specified by:
applyChangeToin classAbstractFileChangeMutator
-