assignment =========== .. include:: /ref/targets/autogen/descriptions/assignment.txt .. contents:: Configuration options --------------------- variableType ~~~~~~~~~~~~ The type of the variable that is used to assign a value to. .. code-block:: yaml search: assignment: variableType: "String" .. code-block:: java :emphasize-lines: 2 Object o = "this is a String"; String s = "this is a String"; expressionType ~~~~~~~~~~~~~~ The type of the expression that is being assigned. .. code-block:: yaml search: assignment: expressionType: "java.lang.String" .. code-block:: java :emphasize-lines: 2 Object o1 = 5; Object o2 = "this is a String"; variableName ~~~~~~~~~~~~ The name of the variable that is being assigned. .. code-block:: yaml search: assignment: variableName: "o2" .. code-block:: java :emphasize-lines: 2 Object o1 = 5; Object o2 = "this is a String"; variable ~~~~~~~~ Checks if the variable that is being assigned (the left-hand side of the assignment) conforms to given criteria. .. code-block:: yaml search: assignment: variable: field: {} .. code-block:: java :emphasize-lines: 4 private String s = ""; void assignMyValue(String value) { this.s = value; } expression ~~~~~~~~~~ Checks if the expression (the right-hand side of the assignment) conforms to given criteria. .. code-block:: yaml search: assignment: expression: methodcall: {} .. code-block:: java :emphasize-lines: 2 String FOO = ""; String BAR = getSomeString(); .. include:: /ref/targets/partials/searcher.txt