Java Modifier.isNative(int mod)
Syntax
Modifier.isNative(int mod) has the following syntax.
public static boolean isNative(int mod)
Example
In the following code shows how to use Modifier.isNative(int mod) method.
//from w w w.j a v a2 s .c o m
import java.lang.reflect.Modifier;
public class Main {
public static void main(String[] args) throws Exception {
Class<?> clazz = String.class;
int modifier = clazz.getModifiers();
if (Modifier.isNative(modifier)) {
System.out.println("isNative");
}
}
}