Lines Matching defs:lookup
45 private final MethodHandles.Lookup lookup;
48 * Creates a new secure lookup supplier, securing the passed lookup.
49 * @param lookup the lookup to secure. Can not be null.
52 public SecureLookupSupplier(final MethodHandles.Lookup lookup) {
53 this.lookup = Objects.requireNonNull(lookup, "lookup");
57 * Returns the lookup secured by this {@code SecureLookupSupplier}.
58 * @return the lookup secured by this {@code SecureLookupSupplier}.
59 * @throws SecurityException if the secured lookup isn't the
65 if (sm != null && lookup != MethodHandles.publicLookup()) {
68 return lookup;
73 * be used by subclasses to access the lookup quickly.
77 return lookup;