Home
last modified time | relevance | path

Searched refs:isStatic (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/test/java/lang/invoke/VarHandles/accessibility/
DTestFieldLookupAccessibility.java63 return !Modifier.isStatic(f.getModifiers()); in MH_GETTER()
72 return !Modifier.isStatic(f.getModifiers()) && !Modifier.isFinal(f.getModifiers()); in MH_SETTER()
81 return Modifier.isStatic(f.getModifiers()); in MH_STATIC_GETTER()
90 return Modifier.isStatic(f.getModifiers()) && !Modifier.isFinal(f.getModifiers()); in MH_STATIC_SETTER()
123 return !Modifier.isStatic(f.getModifiers()); in VH()
132 return Modifier.isStatic(f.getModifiers()); in VH_STATIC()
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DModifierTest.java82 assertTrue(Modifier.isStatic(Modifier.STATIC)); in test_isStaticI()
83 assertTrue(!Modifier.isStatic(-1 & ~Modifier.STATIC)); in test_isStaticI()
DReflectionTest.java560 assertFalse(Modifier.isStatic(modifiers)); in testClassModifiers()
571 assertTrue(Modifier.isStatic(modifiers)); in testInnerClassModifiers()
587 Modifier.isStatic(modifiers); // return value is ignored in testAnonymousClassModifiers()
/libcore/libart/src/main/java/java/lang/invoke/
DStaticFieldVarHandle.java35 assert Modifier.isStatic(staticField.getModifiers()); in create()
DFieldVarHandle.java40 assert !Modifier.isStatic(field.getModifiers()); in create()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandles.java844 if (!Modifier.isStatic(modifiers)) { in findStatic()
977 if (Modifier.isStatic(m.getModifiers())) { in findVirtual()
1369 if (Modifier.isStatic(method.getModifiers())) { in findSpecial()
1555 final boolean isStatic = false; in findVarHandle()
1557 commonFieldChecks(field, recv, type, isStatic, performAccessChecks); in findVarHandle()
1589 boolean isStatic, boolean performAccessChecks) in commonFieldChecks() argument
1595 if (Modifier.isStatic(modifiers) != isStatic) { in commonFieldChecks()
1597 (isStatic ? "not " : "") + "static"; in commonFieldChecks()
1722 final boolean isStatic = true; in findStaticVarHandle()
1724 commonFieldChecks(field, decl, type, isStatic, performAccessChecks); in findStaticVarHandle()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/
DAbstractTest.java91 if (Modifier.isStatic(field.getModifiers())) { in assertImmutable()
DTestZoneId.java104 if (Modifier.isStatic(field.getModifiers()) == false) { in test_immutable()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DModifierTest.java120 assertTrue("STATIC returned false", Modifier.isStatic(ALL_FLAGS)); in test_isStaticI()
121 assertTrue("STATIC returned false", Modifier.isStatic(Modifier.STATIC)); in test_isStaticI()
123 .isStatic(Modifier.TRANSIENT)); in test_isStaticI()
/libcore/ojluni/src/test/java/lang/invoke/
DMethodHandlesGeneralTest.java491 …void testUnreflect(Class<?> defc, boolean isStatic, Class<?> ret, String name, Class<?>... params)… in testUnreflect() argument
493 …testUnreflectMaybeSpecial(null, (Boolean)ac[0], (Lookup)ac[1], defc, (isStatic ? null : defc), ret… in testUnreflect()
516 boolean isStatic = (rcvc == null); in testUnreflectMaybeSpecial()
534 +( isStatic ? "" : " receiver="+rcvc) in testUnreflectMaybeSpecial()
540 assertEquals(isStatic, Modifier.isStatic(rmethod.getModifiers())); in testUnreflectMaybeSpecial()
542 if (!isStatic) { in testUnreflectMaybeSpecial()
546 if (isStatic) { in testUnreflectMaybeSpecial()
641 boolean isStatic; in testAccessor()
647 isStatic = Modifier.isStatic(f.getModifiers()); in testAccessor()
653 isStatic = (Boolean) scnt[0]; in testAccessor()
[all …]
DMethodHandlesTest.java583 boolean isStatic = (kind != 0);
585 String name = (isStatic ? "s" : "f") + btc;
601 if (isStatic) v++;
606 assertTrue(isStatic == (Modifier.isStatic(field.getModifiers())));
618 static boolean testModeMatches(int testMode, boolean isStatic) {
620 case TEST_FIND_STATIC: return isStatic;
621 case TEST_FIND_FIELD: return !isStatic;
DPermuteArgsTest.java148 Modifier.isStatic(m.getModifiers())) { in test0()
221 Modifier.isStatic(m.getModifiers())) { in findTestMH()
/libcore/ojluni/src/test/java/util/Properties/
DCheckOverrides.java70 return !Modifier.isStatic(mods) && in isMethodOfInterest()
/libcore/ojluni/src/main/java/java/lang/reflect/
DModifier.java104 public static boolean isStatic(int mod) { in isStatic() method in Modifier
/libcore/luni/src/test/java/libcore/java/lang/
DLambdaImplementationTest.java282 if ((!Modifier.isStatic(modifiers) && Modifier.isPublic(modifiers))) { in addNonStaticPublicMethods()
362 assertFalse(Modifier.isStatic(classModifiers)); in assertGeneralLambdaClassCharacteristics()
/libcore/ojluni/src/test/java/util/Arrays/
DCopyMethods.java388 if (!Modifier.isStatic(m.getModifiers())) continue;
403 if (!Modifier.isStatic(m.getModifiers())) continue;
/libcore/ojluni/src/main/java/sun/misc/
DUnsafe.java82 if (Modifier.isStatic(field.getModifiers())) { in objectFieldOffset()
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java328 if (Modifier.isStatic(method.getModifiers())) { in test_checkNewMethodsInPosix()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DDefaultMethodStreams.java99 .filter(m -> !Modifier.isStatic(m.getModifiers())) in verify()
107 .filter(m -> !Modifier.isStatic(m.getModifiers())) in verify()
/libcore/ojluni/src/test/java/lang/String/concat/
DImplicitStringConcatMany.java138 if (Modifier.isStatic(f.getModifiers())) {
DImplicitStringConcatManyLongs.java138 if (Modifier.isStatic(f.getModifiers())) {
/libcore/ojluni/src/main/java/jdk/internal/misc/
DUnsafe.java1216 if (Modifier.isStatic(f.getModifiers())) { in objectFieldOffset()
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java506 boolean isStatic, in commonFieldChecks() argument
/libcore/luni/src/test/java/libcore/java/net/
DURLTest.java192 assertTrue(Modifier.isStatic(factoryField.getModifiers())); in withCustomURLStreamHandlerFactory()
/libcore/ojluni/src/main/java/java/lang/
DClass.java2980 if (result != null && !Modifier.isStatic(result.getModifiers())) { in getInstanceMethod()

12