Squid UndocumentedAPI - Pattern


I would like to use the rule in SonarQube “squid:UndocumentedAPI”.

I can choose a pattern of classes I want to adhere to this constraint, bu I don’t understand how works this pattern.

Is this only for the filename or all the tree of the file ?

For exemple, I would like to constraint only files which begin with “API” : eg : APIBlabla.java

Do you know how it works ?

Thanks in advance.