/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ModifierTest.java | 314 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 …]
|
D | MalformedParameterizedTypeExceptionTests.java | 17 .getModifiers())); in test_Constructor()
|
D | ConstructorTest.java | 225 mod = ctor.getModifiers(); in test_getModifiers() 236 mod = ctor.getModifiers(); in test_getModifiers() 247 mod = ctor.getModifiers(); in test_getModifiers()
|
D | MethodTest.java | 295 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()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | AbstractTest.java | 86 assertTrue(Modifier.isPublic(cls.getModifiers())); in assertImmutable() 87 assertTrue(Modifier.isFinal(cls.getModifiers())); in assertImmutable() 91 if (Modifier.isStatic(field.getModifiers())) { in assertImmutable() 92 assertTrue(Modifier.isFinal(field.getModifiers()), "Field:" + field.getName()); in assertImmutable() 94 … assertTrue(Modifier.isPrivate(field.getModifiers()), "Field:" + field.getName()); in assertImmutable() 95 assertTrue(Modifier.isFinal(field.getModifiers()), "Field:" + field.getName()); in assertImmutable() 101 assertTrue(Modifier.isPrivate(con.getModifiers())); in assertImmutable()
|
/libcore/libart/src/main/java/java/lang/invoke/ |
D | FieldVarHandle.java | 30 super(field.getType(), Modifier.isFinal(field.getModifiers()), declaringClass); in FieldVarHandle() 35 super(field.getType(), Modifier.isFinal(field.getModifiers())); in FieldVarHandle() 40 if (Modifier.isStatic(field.getModifiers())) { in create()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Field.java | 87 if ((getModifiers() & Modifier.STATIC) == 0) { in getName() 88 throw new AssertionError("Invalid modifiers for proxy field: " + getModifiers()); in getName() 112 public int getModifiers() { in getModifiers() method in Field 126 return (getModifiers() & Modifier.ENUM) != 0; in isEnumConstant() 138 return Modifier.isSynthetic(getModifiers()); in isSynthetic() 254 int mod = getModifiers(); in toString() 282 int mod = getModifiers(); in toGenericString()
|
D | Parameter.java | 131 sb.append(Modifier.toString(getModifiers())); in toString() 162 public int getModifiers() { in getModifiers() method in Parameter 241 return Modifier.isMandated(getModifiers()); in isImplicit() 255 return Modifier.isSynthetic(getModifiers()); in isSynthetic()
|
D | Member.java | 80 public int getModifiers(); in getModifiers() method
|
D | Executable.java | 83 int mod = getModifiers() & mask; in printModifiersIfNonzero() 200 public abstract int getModifiers(); in getModifiers() method in Executable 365 final int mods = parameter.getModifiers(); in verifyParameters()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | FieldTest.java | 57 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()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandleImpl.java | 163 member.getModifiers(), member.getName()); in reflectAs() 172 public int getModifiers() { in getModifiers() method in MethodHandleImpl.HandleInfo 173 return member.getModifiers(); in getModifiers()
|
D | MethodHandleInfo.java | 210 public int getModifiers(); in getModifiers() method 232 return Modifier.isTransient(getModifiers()); in isVarArgs()
|
D | MethodHandles.java | 783 final int modifiers = method.getModifiers(); in findStatic() 917 if (Modifier.isStatic(m.getModifiers())) { in findVirtual() 928 checkAccess(refc, method.getDeclaringClass(), method.getModifiers(), method.getName()); in findVirtual() 990 checkAccess(refc, constructor.getDeclaringClass(), constructor.getModifiers(), in findConstructor() 1150 if (Modifier.isStatic(method.getModifiers())) { in findSpecial() 1154 if (Modifier.isPrivate(method.getModifiers())) { in findSpecial() 1218 final int modifiers = field.getModifiers(); in findAccessor() 1373 final int modifiers = field.getModifiers(); in commonFieldChecks() 1608 checkAccess(m.getDeclaringClass(), m.getDeclaringClass(), m.getModifiers(), in unreflect() 1612 if (Modifier.isStatic(m.getModifiers())) { in unreflect() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/ |
D | Member.annotated.java | 37 public int getModifiers(); in getModifiers() method
|
D | Constructor.annotated.java | 40 public int getModifiers() { throw new RuntimeException("Stub!"); } in getModifiers() method in Constructor
|
D | Parameter.annotated.java | 45 public int getModifiers() { throw new RuntimeException("Stub!"); } in getModifiers() method in Parameter
|
D | Executable.annotated.java | 40 public abstract int getModifiers(); in getModifiers() method in Executable
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 307 int modifiers = getModifiers() & Modifier.classModifiers(); in toGenericString() 663 return (getModifiers() & FINALIZABLE) != 0; in isFinalizable() 676 return (getModifiers() & ANNOTATION) != 0; in isAnnotation() 688 return (getModifiers() & SYNTHETIC) != 0; in isSynthetic() 1089 public int getModifiers() { in getModifiers() method in Class 1097 int componentModifiers = getComponentType().getModifiers(); in getModifiers() 1362 if (Modifier.isPublic(member.getModifiers())) { in getClasses() 2102 if (result != null && !Modifier.isStatic(result.getModifiers())) { in getInstanceMethod() 2399 return (this.getModifiers() & ENUM) != 0 && in isEnum()
|
/libcore/luni/src/test/java/libcore/sun/util/logging/ |
D | PlatformLoggerTest.java | 57 assertEquals(requiredModifiers, field.getModifiers() & requiredModifiers); in assertLogLevel()
|
/libcore/ojluni/src/main/java/java/io/ |
D | ObjectStreamClass.java | 1400 return ((cons.getModifiers() & Modifier.PUBLIC) != 0) ? in getExternalizableConstructor() 1421 int mods = cons.getModifiers(); in getSerializableConstructor() 1466 int mods = meth.getModifiers(); in getInheritableMethod() 1490 int mods = meth.getModifiers(); in getPrivateMethod() 1645 if ((f.getModifiers() & mask) == mask) { in getDeclaredSerialFields() 1674 ((f.getModifiers() & Modifier.STATIC) == 0)) in getDeclaredSerialFields() 1701 if ((clFields[i].getModifiers() & mask) == 0) { in getDefaultSerialFields() 1718 if ((f.getModifiers() & mask) == mask) { in getDeclaredSUID() 1742 int classMods = cl.getModifiers() & in computeDefaultSUID() 1787 int mods = sig.member.getModifiers() & in computeDefaultSUID() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | Objects.java | 37 if ((f.getModifiers() & (Modifier.STATIC | Modifier.TRANSIENT)) != 0) { in toString()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Parameter.java | 62 public int getModifiers() { in getModifiers() method in Parameter
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | LambdaImplementationTest.java | 281 int modifiers = interfaceMethod.getModifiers(); in addNonStaticPublicMethods() 353 int classModifiers = lambdaClass.getModifiers(); in assertGeneralLambdaClassCharacteristics() 388 if (Modifier.isAbstract(method.getModifiers())) { in assertLambdaMethodCharacteristics()
|
/libcore/ojluni/src/main/java/sun/invoke/util/ |
D | VerifyAccess.java | 180 if (Modifier.isPublic(refc.getModifiers())) in isClassAccessible()
|