All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.jqassistant-rules.decorator.xml Maven / Gradle / Ivy

<jqa:jqassistant-rules xmlns:jqa="http://www.buschmais.com/jqassistant/core/analysis/rules/schema/v1.0">

    <concept id="decorator:Delegate">
        <description>Labels all fields annotated annotated by @javax.decorator.Delegate with "Decorator" and "Delegate".
        </description>
        <cypher><![CDATA[
            MATCH
              (delegate:Field)-[:ANNOTATED_BY]->()-[:OF_TYPE]->(delegateType:Type)
            WHERE
              delegateType.fqn="javax.decorator.Delegate"
            SET
              delegate:Decorator:Delegate
            RETURN
              delegate AS Delegate
        ]]></cypher>
    </concept>

    <concept id="decorator:Decorator">
        <requiresConcept refId="decorator:Delegate"/>
        <description>Labels all types annotated by @javax.decorator.Decorator with "Decorator".
        </description>
        <cypher><![CDATA[
            MATCH
              (decorator:Type)-[:ANNOTATED_BY]->()-[:OF_TYPE]->(decoratorType:Type)
            WHERE
              decoratorType.fqn="javax.decorator.Decorator"
            SET
              decorator:Decorator
            RETURN
              decorator AS Decorator
        ]]></cypher>
    </concept>

</jqa:jqassistant-rules>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy