ModifyAssignedVariable¶
Modify the type of the variable assignment
Description¶
The modifyAssignedVariable
action can be used to modify the type of a variable assignment.
Availability¶
The modifyAssignedVariable
action is available when using the following targets:
Configuration options¶
type¶
The type
that the assigned variable will be changed to.
modifyAssignedVariable:
type: java.lang.Number
- Integer foo = Integer.valueOf("1");
+ Number foo = Integer.valueOf("1");
target¶
Specifies the element to apply the modifyAssignedVariable
action to.
The target
configuration option will default to self
if it is not specified.
- self
Refers to the element found using the search target.
- followByElement
followByElement
is only applicable when your search target includes afollowedBy
instruction. ThefollowByElement
corresponds to the element that was found using thefollowedBy
instruction.