{% for lang in site.data.xpath_funs.langs %} ### {{ lang.name }} {% if lang.header %} {{ lang.header | render_markdown }} {% else %} {{ lang.name }} functions are in the namespace `{{ lang.ns }}`. {% endif %}
{% for fun in lang.funs %} {% capture fun_id %}{{ lang.ns | append: '-' | append: fun.name }}{% endcapture %} {% endfor %}
Function name Description (click for details)
{{ fun.name }} {{ fun.shortDescription }}

{{ lang.ns | append: ':' }}{{ fun.name }}{{ fun | xpath_fun_type }}

{{ fun.description | render_markdown }}
{% if fun.since %}
Since
PMD {{ fun.since }}
{% endif %}
Remarks
{{ fun.notes | render_markdown }}
{% if fun.parameters.size > 0 %}
Parameters
{% for param in fun.parameters %}
{{ param.name }} as {{ param.type }}
{{ param.description | render_markdown }}
{% endfor %}
{% endif %} {% if fun.examples.size > 0 %}
Examples
{% for example in fun.examples %}
{{ example.code }}
{{ example.outcome | render_markdown }}
{% endfor %}
{% endif %}
{% endfor %}