Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/lang/reflect/
DModifier.java167 public static boolean isAbstract(int modifiers) { in isAbstract() argument
168 return ((modifiers & ABSTRACT) != 0); in isAbstract()
174 public static boolean isFinal(int modifiers) { in isFinal() argument
175 return ((modifiers & FINAL) != 0); in isFinal()
181 public static boolean isInterface(int modifiers) { in isInterface() argument
182 return ((modifiers & INTERFACE) != 0); in isInterface()
188 public static boolean isNative(int modifiers) { in isNative() argument
189 return ((modifiers & NATIVE) != 0); in isNative()
195 public static boolean isPrivate(int modifiers) { in isPrivate() argument
196 return ((modifiers & PRIVATE) != 0); in isPrivate()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DAnnotationsTest.java214 int modifiers = AnnotationsTest.class.getModifiers(); in testClassModifiers() local
215 assertTrue(Modifier.isPublic(modifiers)); in testClassModifiers()
216 assertFalse(Modifier.isProtected(modifiers)); in testClassModifiers()
217 assertFalse(Modifier.isPrivate(modifiers)); in testClassModifiers()
218 assertFalse(Modifier.isAbstract(modifiers)); in testClassModifiers()
219 assertFalse(Modifier.isStatic(modifiers)); in testClassModifiers()
220 assertTrue(Modifier.isFinal(modifiers)); in testClassModifiers()
221 assertFalse(Modifier.isStrict(modifiers)); in testClassModifiers()
225 int modifiers = Foo.class.getModifiers(); in testInnerClassModifiers() local
226 assertFalse(Modifier.isPublic(modifiers)); in testInnerClassModifiers()
[all …]
/libcore/luni/src/main/java/java/io/
DObjectStreamClass.java211 int modifiers = field.getModifiers(); in checkAndGetReflectionField() local
212 if (Modifier.isStatic(modifiers) || Modifier.isTransient(modifiers)) { in checkAndGetReflectionField()
366 int modifiers = declaredField.getModifiers(); in buildFieldDescriptors() local
367 if (!Modifier.isStatic(modifiers) && !Modifier.isTransient(modifiers)) { in buildFieldDescriptors()
416 int modifiers = field.getModifiers(); in computeSerialVersionUID() local
417 if (Modifier.isStatic(modifiers) && Modifier.isFinal(modifiers)) { in computeSerialVersionUID()
502 int modifiers = field.getModifiers() & FIELD_MODIFIERS_MASK; in computeSerialVersionUID() local
504 boolean skip = Modifier.isPrivate(modifiers) && in computeSerialVersionUID()
505 (Modifier.isTransient(modifiers) || Modifier.isStatic(modifiers)); in computeSerialVersionUID()
510 output.writeInt(modifiers); in computeSerialVersionUID()
[all …]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java249 final int modifiers; in CASUpdater() local
253 modifiers = field.getModifiers(); in CASUpdater()
276 if (!Modifier.isVolatile(modifiers)) in CASUpdater()
279 this.cclass = (Modifier.isProtected(modifiers) && in CASUpdater()
343 int modifiers = 0; in LockedUpdater() local
347 modifiers = field.getModifiers(); in LockedUpdater()
370 if (!Modifier.isVolatile(modifiers)) in LockedUpdater()
373 this.cclass = (Modifier.isProtected(modifiers) && in LockedUpdater()
DAtomicIntegerFieldUpdater.java249 final int modifiers; in AtomicIntegerFieldUpdaterImpl() local
254 modifiers = field.getModifiers(); in AtomicIntegerFieldUpdaterImpl()
277 if (!Modifier.isVolatile(modifiers)) in AtomicIntegerFieldUpdaterImpl()
280 this.cclass = (Modifier.isProtected(modifiers) && in AtomicIntegerFieldUpdaterImpl()
DAtomicReferenceFieldUpdater.java181 final int modifiers; in AtomicReferenceFieldUpdaterImpl() local
185 modifiers = field.getModifiers(); in AtomicReferenceFieldUpdaterImpl()
208 if (!Modifier.isVolatile(modifiers)) in AtomicReferenceFieldUpdaterImpl()
211 this.cclass = (Modifier.isProtected(modifiers) && in AtomicReferenceFieldUpdaterImpl()
/libcore/libart/src/main/java/java/lang/
DClass.java545 int modifiers = m.getAccessFlags(); in getDeclaredConstructorInternal() local
546 if (Modifier.isStatic(modifiers)) { in getDeclaredConstructorInternal()
550 if (!Modifier.isConstructor(modifiers)) { in getDeclaredConstructorInternal()
593 int modifiers = m.getAccessFlags(); in getDeclaredConstructors() local
594 if (!publicOnly || Modifier.isPublic(modifiers)) { in getDeclaredConstructors()
595 if (Modifier.isStatic(modifiers)) { in getDeclaredConstructors()
599 if (Modifier.isConstructor(modifiers)) { in getDeclaredConstructors()
716 int modifiers = m.getAccessFlags(); in getDeclaredMethodInternal() local
717 if ((modifiers & skipModifiers) == 0) { in getDeclaredMethodInternal()
720 if ((modifiers & Modifier.MIRANDA) == 0) { in getDeclaredMethodInternal()
[all …]
/libcore/libart/src/main/java/java/lang/reflect/
DAbstractMethod.java261 int modifiers = ((Member)this).getModifiers(); in toGenericStringHelper() local
263 if (modifiers != 0) { in toGenericStringHelper()
264 sb.append(Modifier.toString(modifiers & ~Modifier.VARARGS)).append(' '); in toGenericStringHelper()
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...