Package jp.vmi.selenium.selenese.mutator
Class VariableDeclaration
java.lang.Object
jp.vmi.selenium.selenese.mutator.VariableDeclaration
- All Implemented Interfaces:
ScriptMutator
public class VariableDeclaration extends Object implements ScriptMutator
Prepend a variable declaration to a script.
-
Constructor Summary
Constructors Constructor Description VariableDeclaration(String varName, String value) -
Method Summary
Modifier and Type Method Description voidmutate(Context context, String script, StringBuilder outputTo)Mutate a script.
-
Constructor Details
-
VariableDeclaration
- Parameters:
varName- variable name.value- value.
-
-
Method Details
-
mutate
Description copied from interface:ScriptMutatorMutate 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:
mutatein interfaceScriptMutator- Parameters:
context- SeleneseRunner context.script- The original script.outputTo- The mutated script.
-