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.ObjectProvides access to classesjava.lang.invoke.MethodHandlesandjava.lang.invoke.MethodHandles.Lookupintroduced in Java 8.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Objectinstance
-
Constructor Summary
Constructors Modifier Constructor Description privateLookup(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.Lookuplookup()(package private) static InjectedClassRuntime.LookupprivateLookupIn(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.ExceptionSee corresponding method introduced in Java 9.- Parameters:
bytes- the class bytes- Returns:
- class
- Throws:
java.lang.Exception
-
-