Method Code Templates

The following features can be used in DVT to generate new methods:

To customize the way a generated method looks you can edit the method_implementation, method_override_body or method_prototype code templates.

../../_images/method_code_templates.png
../../_images/method_implementation_code_template.png
${qualifiers}

One or more of local/protected, virtual, static. Can be empty.

${kind}

Either function or task.

${lifetime}

Method variable lifetime, static or automatic. Can be empty.

${return_type}

Function return type. Can be empty.

${identifier}

Method name. Includes class_name:: qualifier for extern method implementations.

${arguments}

List of method arguments. Can be empty.

${body}

The method body. If auto-generated, the method_override_body code template is used.

${end_keyword}

Either endfunction or endtask.

${unqualified_identifier}

Method name.

../../_images/method_override_body_code_template.png
../../_images/method_prototype_code_template.png
${qualifiers}

One or more of local/protected, virtual, static. Can be empty.

${kind}

Either function or task.

${lifetime}

Method variable lifetime, static or automatic. Can be empty.

${return_type}

Function return type. Can be empty.

${identifier}

Method name.

${arguments}

List of method arguments. Can be empty.