Home
last modified time | relevance | path

Searched refs:lookup (Results 1 – 25 of 41) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandlesTest.java50 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_defaultLookupClassAndModes()
56 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_LookupIn()
69 MethodHandles.Lookup inner2 = Inner1.lookup.in(Inner2.class); in test_LookupIn()
73 MethodHandles.lookup().in(null); in test_LookupIn()
80 MethodHandles.lookup().in(MethodHandle.class); in test_LookupIn()
87 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_findStatic()
143 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_findConstructor()
202 MethodHandles.Lookup defaultLookup = MethodHandles.lookup(); in test_findVirtual()
272 public static final Lookup lookup = MethodHandles.lookup(); field in MethodHandlesTest.A
282 public static final Lookup lookup = MethodHandles.lookup(); field in MethodHandlesTest.B
[all …]
DMethodHandleAccessorsTest.java538 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testBooleanSettersAndGetters() local
543 tryAccessor(lookup.findSetter(ValueHolder.class, "m_z", boolean.class), in testBooleanSettersAndGetters()
545 tryAccessor(lookup.findGetter(ValueHolder.class, "m_z", boolean.class), in testBooleanSettersAndGetters()
548 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_z", boolean.class), in testBooleanSettersAndGetters()
550 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_z", boolean.class), in testBooleanSettersAndGetters()
558 MethodHandles.Lookup lookup = MethodHandles.lookup(); in testByteSettersAndGetters() local
563 tryAccessor(lookup.findSetter(ValueHolder.class, "m_b", byte.class), in testByteSettersAndGetters()
565 tryAccessor(lookup.findGetter(ValueHolder.class, "m_b", byte.class), in testByteSettersAndGetters()
568 tryAccessor(lookup.findStaticSetter(ValueHolder.class, "s_b", byte.class), in testByteSettersAndGetters()
570 tryAccessor(lookup.findStaticGetter(ValueHolder.class, "s_b", byte.class), in testByteSettersAndGetters()
[all …]
DMethodHandleCombinersTest.java59 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments()
125 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testDropArguments_List()
173 MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException()
178 MethodHandle handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException()
202 handler = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testCatchException()
216 handler = MethodHandles.lookup().findVirtual(IllegalArgumentException.class, in testCatchException()
257 MethodHandle test = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest()
264 … final MethodHandle target = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest()
266 … final MethodHandle fallback = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest()
624 MethodHandle stringCharAt = MethodHandles.lookup().findVirtual( in testBindTo()
[all …]
DCallSitesTest.java37 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_ConstantCallSite()
54 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_EarlyBoundMutableCallSite()
62 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_EarlyBoundVolatileCallSite()
78 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_LateBoundMutableCallSite()
94 MethodHandles.lookup().findStatic(CallSitesTest.class, "add2", type); in test_LateBoundVolatileCallSite()
119 final MethodHandle other = MethodHandles.lookup().findStatic( in commonMutableCallSitesTest()
130 MethodHandles.lookup().findStatic(CallSitesTest.class, "sub2", firstTarget.type()); in commonMutableCallSitesTest()
/libcore/ojluni/src/main/java/java/util/
DListResourceBundle.java129 if (lookup == null) { in handleGetObject()
135 return lookup.get(key); // this class ignores locales in handleGetObject()
148 if (lookup == null) { in getKeys()
153 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys()
167 if (lookup == null) { in handleKeySet()
170 return lookup.keySet(); in handleKeySet()
192 if (lookup != null) in loadLookup()
206 lookup = temp; in loadLookup()
212 private volatile Map<String,Object> lookup = null; field in ListResourceBundle
DPropertyResourceBundle.java139 lookup = new HashMap(properties); in PropertyResourceBundle()
160 lookup = new HashMap(properties); in PropertyResourceBundle()
168 return lookup.get(key); in handleGetObject()
181 return new ResourceBundleEnumeration(lookup.keySet(), in getKeys()
195 return lookup.keySet(); in handleKeySet()
203 private final Map<String,Object> lookup; field in PropertyResourceBundle
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DObjectStreamClassTest.java64 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_forClass()
73 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getFieldLjava_lang_String()
84 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getFields()
95 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getName()
106 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_getSerialVersionUID()
131 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_lookupLjava_lang_Class()
142 ObjectStreamClass osc = ObjectStreamClass.lookup(FakeClass.class); in test_toString()
154 .lookup(ObjectStreamClass.class); in testSerialization()
163 .lookup(proxyClass); in test_specialTypes()
172 .lookup(Thread.State.class); in test_specialTypes()
[all …]
DComputeSerialVersionUIDTest.java84 return ObjectStreamClass.lookup(clazz).getSerialVersionUID(); in computeSerialVersionUID()
/libcore/ojluni/src/main/java/sun/util/resources/
DOpenListResourceBundle.java77 return lookup.get(key); // this class ignores locales in handleGetObject()
97 return lookup.keySet(); in handleKeySet()
127 if (lookup == null) { in loadLookupTablesIfNecessary()
149 if (lookup == null) { in loadLookup()
150 lookup = temp; in loadLookup()
167 private volatile Map<String, Object> lookup = null; field in OpenListResourceBundle
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/lang/invoke/
DSerializedLambdaTest.java309 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testDirectStdNonser()
312 CallSite cs = LambdaMetafactory.metafactory(MethodHandles.lookup(), in testDirectStdNonser()
321 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testDirectStdSer()
324 CallSite cs = LambdaMetafactory.metafactory(MethodHandles.lookup(), in testDirectStdSer()
332 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testAltStdNonser()
335 CallSite cs = LambdaMetafactory.altMetafactory(MethodHandles.lookup(), in testAltStdNonser()
343 …MethodHandle fooMH = MethodHandles.lookup().findStatic(SerializedLambdaTest.class, "foo", predicat… in testAltStdSer()
346 CallSite cs = LambdaMetafactory.altMetafactory(MethodHandles.lookup(), in testAltStdSer()
352 cs = LambdaMetafactory.altMetafactory(MethodHandles.lookup(), in testAltStdSer()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandleImpl.java160 public <T extends Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup) { in reflectAs() argument
162 lookup.checkAccess(member.getDeclaringClass(), member.getDeclaringClass(), in reflectAs()
DMethodHandleInfo.java201 public <T extends Member> T reflectAs(Class<T> expected, Lookup lookup); in reflectAs() argument
/libcore/luni/src/test/java/libcore/java/nio/channels/
DDatagramChannelMulticastTest.java50 private static InetAddress lookup(String s) { in lookup() method in DatagramChannelMulticastTest
61 private static final InetAddress GOOD_MULTICAST_IPv4 = lookup("239.255.0.1");
62 private static final InetAddress BAD_MULTICAST_IPv4 = lookup("239.255.0.2");
63 private static final InetAddress GOOD_MULTICAST_IPv6 = lookup("ff05::7:7");
64 private static final InetAddress BAD_MULTICAST_IPv6 = lookup("ff05::7:8");
67 private static final InetAddress WILDCARD_IPv4 = lookup("0.0.0.0");
68 private static final InetAddress WILDCARD_IPv6 = lookup("::");
72 private static final InetAddress UNICAST_IPv4_1 = lookup("192.168.1.1");
73 private static final InetAddress UNICAST_IPv4_2 = lookup("192.168.1.2");
74 private static final InetAddress UNICAST_IPv6_1 = lookup("2001:db8::1");
[all …]
/libcore/ojluni/src/main/java/java/io/
DObjectOutputStream.java1050 } else if ((handle = handles.lookup(str)) != -1) { in writeTypeString()
1136 if ((obj = subs.lookup(obj)) == null) { in writeObject0()
1139 } else if (!unshared && (h = handles.lookup(obj)) != -1) { in writeObject0()
1179 desc = ObjectStreamClass.lookup(cl, true); in writeObject0()
1185 desc = ObjectStreamClass.lookup(cl, true); in writeObject0()
1193 desc = ObjectStreamClass.lookup(cl, true); in writeObject0()
1204 } else if (!unshared && (h = handles.lookup(obj)) != -1) { in writeObject0()
1269 writeClassDesc(ObjectStreamClass.lookup(cl, true), false); in writeClass()
1282 } else if (!unshared && (handle = handles.lookup(desc)) != -1) { in writeClassDesc()
2389 int lookup(Object obj) { in lookup() method in ObjectOutputStream.HandleTable
[all …]
DObjectStreamClass.java220 public static ObjectStreamClass lookup(Class<?> cl) { in lookup() method in ObjectStreamClass
221 return lookup(cl, false); in lookup()
233 return lookup(cl, true); in lookupAny()
329 static ObjectStreamClass lookup(Class<?> cl, boolean all) { in lookup() method in ObjectStreamClass
476 superDesc = (superCl != null) ? lookup(superCl, false) : null; in ObjectStreamClass()
568 osc = lookup(cl, true); in initProxy()
606 osc = lookup(cl, true); in initNonProxy()
1242 ObjectStreamClass.lookup(c, true), false)); in getClassDataLayout0()
1254 ObjectStreamClass.lookup(c, true), false)); in getClassDataLayout0()
/libcore/benchmarks/src/benchmarks/regression/
DSerializationBenchmark.java68 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeReadObjectStreamClass()
80 ObjectStreamClass osc = ObjectStreamClass.lookup(String.class); in timeWriteObjectStreamClass()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java489 private static Charset lookup(String charsetName) {
540 return (lookup(charsetName) != null);
563 Charset cs = lookup(charsetName);
/libcore/luni/src/test/java/libcore/java/io/
DSerializationTest.java36 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeTransient.class); in testSerializeFieldMadeTransient()
60 ObjectStreamClass osc = ObjectStreamClass.lookup(FieldMadeStatic.class); in testSerializeFieldMadeStatic()
DOldObjectStreamFieldTest.java173 osc = ObjectStreamClass.lookup(FakeClass.class); in setUp()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java55 private static InetAddress lookup(String s) { in lookup() method in MulticastSocketTest
67 private static InetAddress GOOD_IPv4 = lookup("224.0.0.3");
68 private static InetAddress BAD_IPv4 = lookup("224.0.0.4");
69 private static InetAddress GOOD_IPv6 = lookup("ff05::7:7");
70 private static InetAddress BAD_IPv6 = lookup("ff05::7:8");
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronology.java137 Chronology lookup = Chronology.of(chrono.getId()); in test_calendar_list() local
138 assertNotNull(lookup, "Required calendar not found: " + chrono); in test_calendar_list()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPatternSyntaxExceptionTest.java115 ObjectStreamClass objectStreamClass = ObjectStreamClass.lookup(PatternSyntaxException.class); in test_objectStreamField()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandles.java36 public static Lookup lookup() { return null; } in lookup() method in MethodHandles
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharset.java58 private static java.nio.charset.Charset lookup(java.lang.String charsetName) { in lookup() method in Charset
/libcore/ojluni/annotations/hiddenapi/java/io/
DObjectStreamClass.java41 public static java.io.ObjectStreamClass lookup(java.lang.Class<?> cl) { in lookup() method in ObjectStreamClass
73 static java.io.ObjectStreamClass lookup(java.lang.Class<?> cl, boolean all) { in lookup() method in ObjectStreamClass

12