Home
last modified time | relevance | path

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

123

/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()
/libcore/ojluni/src/test/java/time/test/java/time/
DAbstractTest.java86 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/
DFieldVarHandle.java30 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/
DField.java87 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()
DParameter.java131 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()
DMember.java80 public int getModifiers(); in getModifiers() method
DExecutable.java83 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/
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()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleImpl.java163 member.getModifiers(), member.getName()); in reflectAs()
172 public int getModifiers() { in getModifiers() method in MethodHandleImpl.HandleInfo
173 return member.getModifiers(); in getModifiers()
DMethodHandleInfo.java210 public int getModifiers(); in getModifiers() method
232 return Modifier.isTransient(getModifiers()); in isVarArgs()
DMethodHandles.java783 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/
DMember.annotated.java37 public int getModifiers(); in getModifiers() method
DConstructor.annotated.java40 public int getModifiers() { throw new RuntimeException("Stub!"); } in getModifiers() method in Constructor
DParameter.annotated.java45 public int getModifiers() { throw new RuntimeException("Stub!"); } in getModifiers() method in Parameter
DExecutable.annotated.java40 public abstract int getModifiers(); in getModifiers() method in Executable
/libcore/ojluni/src/main/java/java/lang/
DClass.java307 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/
DPlatformLoggerTest.java57 assertEquals(requiredModifiers, field.getModifiers() & requiredModifiers); in assertLogLevel()
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1400 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/
DObjects.java37 if ((f.getModifiers() & (Modifier.STATIC | Modifier.TRANSIENT)) != 0) { in toString()
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/
DParameter.java62 public int getModifiers() { in getModifiers() method in Parameter
/libcore/luni/src/test/java/libcore/java/lang/
DLambdaImplementationTest.java281 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/
DVerifyAccess.java180 if (Modifier.isPublic(refc.getModifiers())) in isClassAccessible()

123