Home
last modified time | relevance | path

Searched refs:klass (Results 1 – 5 of 5) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DReflectionBenchmark.java32 Class<?> klass = C.class; in timeClass_getField() local
34 klass.getField("f"); in timeClass_getField()
39 Class<?> klass = C.class; in timeClass_getDeclaredField() local
41 klass.getDeclaredField("f"); in timeClass_getDeclaredField()
46 Class<?> klass = C.class; in timeClass_getConstructor() local
48 klass.getConstructor(); in timeClass_getConstructor()
53 Class<?> klass = C.class; in timeClass_newInstance() local
54 Constructor constructor = klass.getConstructor(); in timeClass_newInstance()
61 Class<?> klass = C.class; in timeClass_getMethod() local
63 klass.getMethod("m"); in timeClass_getMethod()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DNoClassDefFoundErrorTest.java22 Class<NoClassDefFoundError> klass = NoClassDefFoundError.class; in test_NoClassDefFoundError_constructor_with_cause() local
24 klass.getDeclaredConstructor(String.class, Throwable.class); in test_NoClassDefFoundError_constructor_with_cause()
/libcore/dalvik/src/main/java/dalvik/system/
DVMDebug.java426 public static native long countInstancesOfClass(Class klass, boolean assignable); in countInstancesOfClass() argument
571 public static native void allowHiddenApiReflectionFrom(Class<?> klass); in allowHiddenApiReflectionFrom() argument
/libcore/luni/src/test/native/
Dlibcore_dalvik_system_JniTest.cpp24 extern "C" jclass Java_libcore_dalvik_system_JniTest_returnClass(JNIEnv*, jclass klass) { in Java_libcore_dalvik_system_JniTest_returnClass() argument
25 return klass; in Java_libcore_dalvik_system_JniTest_returnClass()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java407 private static boolean isAbstract(Class<?> klass) { in isAbstract() argument
408 return (klass.getModifiers() & Modifier.ABSTRACT) == Modifier.ABSTRACT; in isAbstract()
411 private static void checkInstantiable(Class<?> klass) throws InstantiationException { in checkInstantiable() argument
412 if (isAbstract(klass)) { in checkInstantiable()
413 String s = klass.isInterface() ? "interface " : "abstract class "; in checkInstantiable()
414 throw new InstantiationException("Can't instantiate " + s + klass); in checkInstantiable()