简体   繁体   English

Proguard中的vs vs ** vs ***?

[英]* vs ** vs *** in Proguard?

What is the difference between the * , ** and *** wildcards in Proguard? Proguard中的******通配符有什么区别? For example: 例如:

-keep class com.mypackage.*

vs VS

-keep class com.mypackage.**

vs VS

-keep class com.mypackage.***
*   matches any part of a method name. OR matches any part of a class name not containing the package separator.
**  matches any part of a class name, possibly containing any number of package separators.
*** matches any type (primitive or non-primitive, array or non-array).

Note that the * , and ** wildcards will never match primitive types. 请注意***通配符永远不会匹配基本类型。 Furthermore, only the * wildcards will match array types of any dimension. 此外,只有*通配符将匹配任何维度的数组类型。 For example, " get*()" matches "java.lang.Object getObject()" , but not "float getFloat()" , nor "java.lang.Object[] getObjects()" . 例如,“ get *()”匹配"java.lang.Object getObject()" ,但不匹配"java.lang.Object getObject()" "float getFloat()" ,也不匹配"java.lang.Object[] getObjects()"

*   matches any part of a filename not containing the directory separator.
**  matches any part of a filename, possibly containing any number of directory separators.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM