| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.99.0/docs/apis/_sources/head_arguments_mutation_5.rst.txt |
.. index:: single: head_arguments_mutation(Entity,Predicate,ClauseIndex,Occurrence,PrintMutation)
.. _head_arguments_mutation/5:
.. rst-class:: right
object
head_arguments_mutation(Entity,Predicate,ClauseIndex,Occurrence,PrintMutation)Entity - Identifier of the entity being mutated.Predicate - Predicate or non-terminal indicator selecting clauses to mutate.ClauseIndex - 1-based clause index for the selected mutation (equal to Occurrence for this mutator).Occurrence - 1-based mutation occurrence index selecting one compile-time bound head argument to mutate.PrintMutation - Boolean flag to print the original and mutated term plus source location.
Hook object implementing the head_arguments_mutation mutator by mutating one compile-time bound predicate/non-terminal head argument using the type::mutation/3 predicate.
| Availability:
| logtalk_load(mutation_testing(loader))
| Author: Paulo Moura | Version: 1:0:0 | Date: 2026-03-20
| Compilation flags:
| static, context_switching_calls
| Implements:
| public :ref:`expanding <expanding/0>`
| public :ref:`clause_mutator_protocol <clause_mutator_protocol/0>`
| Imports:
| public :ref:`mutator_common <mutator_common/0>`
| Uses:
| :ref:`type <type/0>`
| Remarks: | (none)
| Inherited public predicates: | Â :ref:`mutator_protocol/0::coverage_clause_mutator/0` Â :ref:`expanding/0::goal_expansion/2` Â :ref:`mutator_protocol/0::mutation/2` Â :ref:`mutator_protocol/0::reset/0` Â :ref:`expanding/0::term_expansion/2` Â
.. contents:: :local: :backlinks: top
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(none)