Package org.jacoco.core.runtime
Class InjectedClassRuntime.Lookup
java.lang.Object
org.jacoco.core.runtime.InjectedClassRuntime.Lookup
- Enclosing class:
InjectedClassRuntime
Provides access to classes
java.lang.invoke.MethodHandles
and
java.lang.invoke.MethodHandles.Lookup
introduced in Java 8.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) Class
<?> defineClass
(byte[] bytes) See corresponding method introduced in Java 9.(package private) static InjectedClassRuntime.Lookup
lookup()
(package private) static InjectedClassRuntime.Lookup
privateLookupIn
(Class<?> targetClass, InjectedClassRuntime.Lookup lookup) See corresponding method introduced in Java 9.
-
Field Details
-
instance
-
-
Constructor Details
-
Lookup
-
-
Method Details
-
lookup
- Returns:
- a lookup object for the caller of this method
- Throws:
Exception
-
privateLookupIn
static InjectedClassRuntime.Lookup privateLookupIn(Class<?> targetClass, InjectedClassRuntime.Lookup lookup) throws 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:
Exception
-
defineClass
See corresponding method introduced in Java 9.- Parameters:
bytes
- the class bytes- Returns:
- class
- Throws:
Exception
-