Home
last modified time | relevance | path

Searched refs:getModifiers (Results 1 – 25 of 47) 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/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
DConstructor.java113 public int getModifiers() { in getModifiers() method in Constructor
DMethod.java122 public int getModifiers() { in getModifiers() method in Method
/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()
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
DExecutable.annotated.java40 public abstract int getModifiers(); in getModifiers() method in Executable
DMethod.annotated.java40 public int getModifiers() { throw new RuntimeException("Stub!"); } in getModifiers() method in Method
/libcore/luni/src/test/java/libcore/sun/util/logging/
DPlatformLoggerTest.java57 assertEquals(requiredModifiers, field.getModifiers() & requiredModifiers); in assertLogLevel()
/libcore/luni/src/main/java/libcore/util/
DObjects.java37 if ((f.getModifiers() & (Modifier.STATIC | Modifier.TRANSIENT)) != 0) { in toString()
/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/ojluni/annotations/hiddenapi/java/lang/reflect/
DParameter.java62 public int getModifiers() { in getModifiers() method in Parameter
DConstructor.java61 public int getModifiers() { in getModifiers() method in Constructor
/libcore/ojluni/src/main/java/sun/invoke/util/
DVerifyAccess.java180 if (Modifier.isPublic(refc.getModifiers())) in isClassAccessible()
/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/java/util/concurrent/atomic/
DAtomicLongFieldUpdater.java394 modifiers = field.getModifiers(); in CASUpdater()
535 modifiers = field.getModifiers(); in LockedUpdater()

12