Home
last modified time | relevance | path

Searched refs:getModifiers (Results 1 – 25 of 28) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DModifierTest.java314 assertEquals(Modifier.ABSTRACT, AbstractClazz.class.getModifiers()); in test_Class_Modifier()
315 assertEquals(Modifier.FINAL, FinalClazz.class.getModifiers()); in test_Class_Modifier()
316 assertEquals(Modifier.STATIC, StaticClazz.class.getModifiers()); in test_Class_Modifier()
318 InterfaceClazz.class.getModifiers()); in test_Class_Modifier()
320 assertEquals(Modifier.PUBLIC, PublicClazz.class.getModifiers()); in test_Class_Modifier()
321 assertEquals(Modifier.PROTECTED, ProtectedClazz.class.getModifiers()); in test_Class_Modifier()
322 assertEquals(Modifier.PRIVATE, PrivateClazz.class.getModifiers()); in test_Class_Modifier()
325 PublicAbstractClazz.class.getModifiers()); in test_Class_Modifier()
327 ProtectedAbstractClazz.class.getModifiers()); in test_Class_Modifier()
329 PrivateAbstractClazz.class.getModifiers()); in test_Class_Modifier()
[all …]
DMalformedParameterizedTypeExceptionTests.java17 .getModifiers())); in test_Constructor()
DConstructorTest.java225 mod = ctor.getModifiers(); in test_getModifiers()
236 mod = ctor.getModifiers(); in test_getModifiers()
247 mod = ctor.getModifiers(); in test_getModifiers()
DMethodTest.java295 mods = mth.getModifiers(); in test_getModifiers()
303 mods = mth.getModifiers(); in test_getModifiers()
311 mods = mth.getModifiers(); in test_getModifiers()
319 mods = mth.getModifiers(); in test_getModifiers()
329 mods = mth.getModifiers(); in test_getModifiers()
DInvocationTargetExceptionTest.java122 .getModifiers())); in test_Constructor()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DFieldTest.java57 assertEquals(Modifier.SYNTHETIC, valuesField.getModifiers() & Modifier.SYNTHETIC); in testSyntheticModifier()
66 assertEquals("public static final", Modifier.toString(blockedField.getModifiers())); in testEnumValueField()
82 assertEquals(Modifier.TRANSIENT, transientField.getModifiers() & Modifier.TRANSIENT); in testTransientModifier()
93 assertEquals(Modifier.TRANSIENT, transientField.getModifiers() & Modifier.TRANSIENT); in testToGenericString()
DAnnotationsTest.java219 int modifiers = AnnotationsTest.class.getModifiers(); in testClassModifiers()
230 int modifiers = Foo.class.getModifiers(); in testInnerClassModifiers()
241 int modifiers = staticAnonymous.getClass().getModifiers(); in testAnonymousClassModifiers()
DOldAndroidClassTest.java96 assertTrue(Modifier.isPublic(helloClass.getModifiers())); in testGetModifiers()
/libcore/ojluni/src/main/java/java/lang/reflect/
DMethod.java116 public int getModifiers() { in getModifiers() method in Method
117 return super.getModifiers(); in getModifiers()
327 int mod = getModifiers() & Modifier.methodModifiers(); in toString()
397 int mod = getModifiers() & Modifier.methodModifiers(); in toGenericString()
521 return (getModifiers() & Modifier.BRIDGE) != 0; in isBridge()
534 return (getModifiers() & Modifier.VARARGS) != 0; in isVarArgs()
546 return Modifier.isSynthetic(getModifiers()); in isSynthetic()
DConstructor.java104 public int getModifiers() { in getModifiers() method in Constructor
105 return super.getModifiers(); in getModifiers()
265 int mod = getModifiers() & Modifier.constructorModifiers(); in toString()
329 int mod = getModifiers() & Modifier.constructorModifiers(); in toGenericString()
452 return (getModifiers() & Modifier.VARARGS) != 0; in isVarArgs()
465 return Modifier.isSynthetic(getModifiers()); in isSynthetic()
DField.java100 public int getModifiers() { in getModifiers() method in Field
113 return (getModifiers() & Modifier.ENUM) != 0; in isEnumConstant()
125 return Modifier.isSynthetic(getModifiers()); in isSynthetic()
234 int mod = getModifiers(); in toString()
261 int mod = getModifiers(); in toGenericString()
DMember.java82 public int getModifiers(); in getModifiers() method
DProxy.java530 int flags = interfaces[i].getModifiers(); in getProxyClass0()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandleInfo.java53 public int getModifiers(); in getModifiers() method
/libcore/ojluni/src/main/java/java/lang/
DClass.java619 return (getModifiers() & FINALIZABLE) != 0; in isFinalizable()
632 return (getModifiers() & ANNOTATION) != 0; in isAnnotation()
643 return (getModifiers() & SYNTHETIC) != 0; in isSynthetic()
1039 public int getModifiers() { in getModifiers() method in Class
1047 int componentModifiers = getComponentType().getModifiers(); in getModifiers()
1294 if (Modifier.isPublic(member.getModifiers())) { in getClasses()
2264 return (this.getModifiers() & ENUM) != 0 && in isEnum()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1337 return ((cons.getModifiers() & Modifier.PUBLIC) != 0) ? in getExternalizableConstructor()
1358 int mods = cons.getModifiers(); in getSerializableConstructor()
1400 int mods = meth.getModifiers(); in getInheritableMethod()
1424 int mods = meth.getModifiers(); in getPrivateMethod()
1579 if ((f.getModifiers() & mask) == mask) { in getDeclaredSerialFields()
1608 ((f.getModifiers() & Modifier.STATIC) == 0)) in getDeclaredSerialFields()
1635 if ((clFields[i].getModifiers() & mask) == 0) { in getDefaultSerialFields()
1652 if ((f.getModifiers() & mask) == mask) { in getDeclaredSUID()
1676 int classMods = cl.getModifiers() & in computeDefaultSUID()
1721 int mods = sig.member.getModifiers() & in computeDefaultSUID()
[all …]
/libcore/libart/src/main/java/java/lang/reflect/
DAbstractMethod.java102 int getModifiers() { in getModifiers() method in AbstractMethod
331 int modifiers = ((Member)this).getModifiers(); in toGenericStringHelper()
/libcore/luni/src/main/java/libcore/util/
DObjects.java48 if ((f.getModifiers() & (Modifier.STATIC | Modifier.TRANSIENT)) != 0) { in toString()
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java357 modifiers = field.getModifiers(); in CASUpdater()
487 modifiers = field.getModifiers(); in LockedUpdater()
DAtomicReferenceFieldUpdater.java292 modifiers = field.getModifiers(); in AtomicReferenceFieldUpdaterImpl()
DAtomicIntegerFieldUpdater.java364 modifiers = field.getModifiers(); in AtomicIntegerFieldUpdaterImpl()
/libcore/benchmarks/src/benchmarks/regression/
DAnnotatedElementBenchmark.java186 HasSmallAnnotation.class.getModifiers(); in timeGetModifiers()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java393 int dcm = PrivateClass.class.getModifiers(); in test_getModifiers()
398 int ocm = Object.class.getModifiers(); in test_getModifiers()
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java78 if (Modifier.isStatic(field.getModifiers())) { in objectFieldOffset()
/libcore/jsr166-tests/src/test/java/jsr166/
DJSR166TestCase.java515 && Modifier.isPublic(method.getModifiers()) in testMethodNames()

12