Home
last modified time | relevance | path

Searched refs:modifiers (Results 1 – 21 of 21) sorted by relevance

/libcore/ojluni/src/main/java/sun/reflect/
DReflection.java113 int modifiers) in ensureMemberAccess() argument
120 if (!verifyMemberAccess(currentClass, memberClass, target, modifiers)) { in ensureMemberAccess()
125 Modifier.toString(modifiers) + in ensureMemberAccess()
136 int modifiers) in verifyMemberAccess() argument
165 if (Modifier.isPublic(modifiers)) { in verifyMemberAccess()
171 if (Modifier.isProtected(modifiers)) { in verifyMemberAccess()
178 if (!successSoFar && !Modifier.isPrivate(modifiers)) { in verifyMemberAccess()
194 if (Modifier.isProtected(modifiers)) { in verifyMemberAccess()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DReflectionTest.java555 int modifiers = ReflectionTest.class.getModifiers(); in testClassModifiers() local
556 assertTrue(Modifier.isPublic(modifiers)); in testClassModifiers()
557 assertFalse(Modifier.isProtected(modifiers)); in testClassModifiers()
558 assertFalse(Modifier.isPrivate(modifiers)); in testClassModifiers()
559 assertFalse(Modifier.isAbstract(modifiers)); in testClassModifiers()
560 assertFalse(Modifier.isStatic(modifiers)); in testClassModifiers()
561 assertTrue(Modifier.isFinal(modifiers)); in testClassModifiers()
562 assertFalse(Modifier.isStrict(modifiers)); in testClassModifiers()
566 int modifiers = Foo.class.getModifiers(); in testInnerClassModifiers() local
567 assertFalse(Modifier.isPublic(modifiers)); in testInnerClassModifiers()
[all …]
/libcore/ojluni/src/main/java/java/lang/reflect/
DParameter.java49 private final int modifiers; field in Parameter
67 int modifiers, in Parameter() argument
71 this.modifiers = modifiers; in Parameter()
133 if(0 != modifiers) in toString()
163 return modifiers; in getModifiers()
DModifier.java148 public static boolean isConstructor(int modifiers) { in isConstructor() argument
149 return ((modifiers & Modifier.CONSTRUCTOR) != 0); in isConstructor()
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java382 final int modifiers; in CASUpdater() local
394 modifiers = field.getModifiers(); in CASUpdater()
396 caller, tclass, null, modifiers); in CASUpdater()
418 if (!Modifier.isVolatile(modifiers)) in CASUpdater()
421 this.cclass = (Modifier.isProtected(modifiers)) ? caller : tclass; in CASUpdater()
523 int modifiers = 0; in LockedUpdater() local
535 modifiers = field.getModifiers(); in LockedUpdater()
537 caller, tclass, null, modifiers); in LockedUpdater()
559 if (!Modifier.isVolatile(modifiers)) in LockedUpdater()
562 this.cclass = (Modifier.isProtected(modifiers)) ? caller : tclass; in LockedUpdater()
DAtomicReferenceFieldUpdater.java317 final int modifiers; in AtomicReferenceFieldUpdaterImpl() local
329 modifiers = field.getModifiers(); in AtomicReferenceFieldUpdaterImpl()
331 caller, tclass, null, modifiers); in AtomicReferenceFieldUpdaterImpl()
356 if (!Modifier.isVolatile(modifiers)) in AtomicReferenceFieldUpdaterImpl()
359 this.cclass = (Modifier.isProtected(modifiers)) ? caller : tclass; in AtomicReferenceFieldUpdaterImpl()
DAtomicIntegerFieldUpdater.java384 final int modifiers; in AtomicIntegerFieldUpdaterImpl() local
397 modifiers = field.getModifiers(); in AtomicIntegerFieldUpdaterImpl()
399 caller, tclass, null, modifiers); in AtomicIntegerFieldUpdaterImpl()
423 if (!Modifier.isVolatile(modifiers)) in AtomicIntegerFieldUpdaterImpl()
426 this.cclass = (Modifier.isProtected(modifiers)) ? caller : tclass; in AtomicIntegerFieldUpdaterImpl()
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractPoller.java80 WatchEvent.Modifier... modifiers); in implRegister() argument
97 WatchEvent.Modifier... modifiers) in register() argument
125 return (WatchKey)invoke(RequestType.REGISTER, dir, eventSet, modifiers); in register()
258 WatchEvent.Modifier[] modifiers = in processRequests() local
260 req.release(implRegister(path, events, modifiers)); in processRequests()
DLinuxWatchService.java89 WatchEvent.Modifier... modifiers) in register() argument
93 return poller.register(dir, events, modifiers); in register()
219 WatchEvent.Modifier... modifiers) in implRegister() argument
240 if (modifiers.length > 0) { in implRegister()
241 for (WatchEvent.Modifier modifier: modifiers) { in implRegister()
DPollingWatchService.java73 WatchEvent.Modifier... modifiers) in register() argument
104 if (modifiers.length > 0) { in register()
105 for (WatchEvent.Modifier modifier: modifiers) { in register()
DUnixPath.java889 WatchEvent.Modifier... modifiers) in register() argument
897 return ((AbstractWatchService)watcher).register(this, events, modifiers); in register()
/libcore/ojluni/src/main/java/sun/reflect/misc/
DReflectUtil.java58 int modifiers) in ensureMemberAccess() argument
61 if (target == null && Modifier.isProtected(modifiers)) { in ensureMemberAccess()
62 int mods = modifiers; in ensureMemberAccess()
103 modifiers); in ensureMemberAccess()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DParameter.java36 int modifiers, in Parameter() argument
139 private final int modifiers; field in Parameter
142 modifiers = 0;
/libcore/ojluni/annotations/hiddenapi/sun/reflect/
DReflection.java46 int modifiers) in ensureMemberAccess() argument
55 int modifiers) { in verifyMemberAccess() argument
/libcore/ojluni/src/main/java/java/nio/file/
DWatchable.java91 WatchEvent.Modifier... modifiers) in register() argument
DPath.java663 WatchEvent.Modifier... modifiers) in register() argument
/libcore/ojluni/annotations/hiddenapi/sun/reflect/misc/
DReflectUtil.java51 int modifiers) in ensureMemberAccess() argument
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/
DParameter.annotated.java33 Parameter(java.lang.String name, int modifiers, java.lang.reflect.Executable executable, int index)… in Parameter() argument
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java783 final int modifiers = method.getModifiers(); in findStatic() local
784 if (!Modifier.isStatic(modifiers)) { in findStatic()
788 checkAccess(refc, method.getDeclaringClass(), modifiers, method.getName()); in findStatic()
1218 final int modifiers = field.getModifiers(); in findAccessor() local
1219 if (isSetterKind && Modifier.isFinal(modifiers)) { in findAccessor()
1373 final int modifiers = field.getModifiers(); in commonFieldChecks() local
1375 checkAccess(refc, field.getDeclaringClass(), modifiers, field.getName()); in commonFieldChecks()
1377 if (Modifier.isStatic(modifiers) != isStatic) { in commonFieldChecks()
/libcore/ojluni/src/main/java/java/lang/
DClass.java307 int modifiers = getModifiers() & Modifier.classModifiers(); in toGenericString() local
308 if (modifiers != 0) { in toGenericString()
309 sb.append(Modifier.toString(modifiers)); in toGenericString()
1104 int modifiers = this.getInnerClassFlags(accessFlags & JAVA_FLAGS_MASK); in getModifiers() local
1105 return modifiers & JAVA_FLAGS_MASK; in getModifiers()
/libcore/luni/src/test/java/libcore/java/lang/
DLambdaImplementationTest.java281 int modifiers = interfaceMethod.getModifiers(); in addNonStaticPublicMethods() local
282 if ((!Modifier.isStatic(modifiers) && Modifier.isPublic(modifiers))) { in addNonStaticPublicMethods()