private native boolean isDeclaredAnnotationPresentClass extends Annotation annotationClass;
This method checks if the specified annotation is present on the element. It takes a Class object representing the annotation type as the parameter and returns a boolean value indicating whether the annotation is present or not. The method is declared as native, which means it is implemented in a platform-dependent manner and is written in a language other than Java, typically C or C++.
原文地址: http://www.cveoy.top/t/topic/hAdn 著作权归作者所有。请勿转载和采集!