Class VariableDeclaration
- java.lang.Object
-
- com.thoughtworks.selenium.webdriven.VariableDeclaration
-
- All Implemented Interfaces:
ScriptMutator
public class VariableDeclaration extends java.lang.Object implements ScriptMutator
Prepend a variable declaration to a script.
-
-
Constructor Summary
Constructors Constructor Description VariableDeclaration(java.lang.String raw, java.lang.String declaration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mutate(java.lang.String script, java.lang.StringBuilder outputTo)
Mutate a script.
-
-
-
Method Detail
-
mutate
public void mutate(java.lang.String script, java.lang.StringBuilder outputTo)
Description copied from interface:ScriptMutator
Mutate a script. The original, unmodified script is used to generate a script on the StringBuilder, the "toString" method of which should be used to get the result. We make use of a StringBuilder rather than a normal String so that we can efficiently chain mutators.- Specified by:
mutate
in interfaceScriptMutator
- Parameters:
script
- The original script.outputTo
- The mutated script.
-
-