Package org.jacoco.core.runtime
Class InjectedClassRuntime.Lookup
- java.lang.Object
-
- org.jacoco.core.runtime.InjectedClassRuntime.Lookup
-
- Enclosing class:
- InjectedClassRuntime
private static class InjectedClassRuntime.Lookup extends java.lang.Object
Provides access to classesjava.lang.invoke.MethodHandles
andjava.lang.invoke.MethodHandles.Lookup
introduced in Java 8.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Object
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
Lookup(java.lang.Object instance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.Class<?>
defineClass(byte[] bytes)
See corresponding method introduced in Java 9.(package private) static InjectedClassRuntime.Lookup
lookup()
(package private) static InjectedClassRuntime.Lookup
privateLookupIn(java.lang.Class<?> targetClass, InjectedClassRuntime.Lookup lookup)
See corresponding method introduced in Java 9.
-
-
-
Method Detail
-
lookup
static InjectedClassRuntime.Lookup lookup() throws java.lang.Exception
- Returns:
- a lookup object for the caller of this method
- Throws:
java.lang.Exception
-
privateLookupIn
static InjectedClassRuntime.Lookup privateLookupIn(java.lang.Class<?> targetClass, InjectedClassRuntime.Lookup lookup) throws java.lang.Exception
See corresponding method introduced in Java 9.- Parameters:
targetClass
- the target classlookup
- the caller lookup object- Returns:
- a lookup object for the target class, with private access
- Throws:
java.lang.Exception
-
defineClass
java.lang.Class<?> defineClass(byte[] bytes) throws java.lang.Exception
See corresponding method introduced in Java 9.- Parameters:
bytes
- the class bytes- Returns:
- class
- Throws:
java.lang.Exception
-
-