A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1901 below:

[apex] Expose super type name of UserClass · Issue #1901 · pmd/pmd · GitHub

Hi everyone
I'm trying to create a custom rule to get if a class have a specific extend class.
But the node of UserClass doesn't have a extends node like Java.

For example:

public class AccountTriggerHandler extends TriggerHandler

Java:
//ClassOrInterfaceDeclaration[contains(@Image,'TriggerHandler') and //ClassOrInterfaceDeclaration/ExtendsList/ClassOrInterfaceType[not(@Image='TriggerHandler')]]

For Java it's working fine, I can't do the same for APEX though

//UserClass[contains(@Image,'TriggerHandler')]

Someone can help me with this?

Best Regards


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4