Searched defs:exType (Results 1 - 2 of 2) sorted by relevance

/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DMethodHandleImpl.java592 private final Class<? extends Throwable> exType; field in class:MethodHandleImpl.GuardWithCatch
595 GuardWithCatch(MethodHandle target, Class<? extends Throwable> exType, MethodHandle catcher) { argument
597 this.exType = exType;
605 if (!exType.isInstance(t)) throw t;
614 if (!exType.isInstance(t)) throw t;
623 if (!exType.isInstance(t)) throw t;
632 if (!exType.isInstance(t)) throw t;
641 if (!exType.isInstance(t)) throw t;
650 if (!exType
722 makeGuardWithCatch(MethodHandle target, Class<? extends Throwable> exType, MethodHandle catcher) argument
[all...]
H A DMethodHandles.java2198 * Also, the handler must have an extra leading parameter of {@code exType} or a supertype.
2222 * @param exType the type of exception which the handler will catch
2233 Class<? extends Throwable> exType,
2238 !htype.parameterType(0).isAssignableFrom(exType))
2239 throw newIllegalArgumentException("handler does not accept exception type "+exType);
2252 return MethodHandleImpl.makeGuardWithCatch(target, exType, handler);
2256 * Produces a method handle which will throw exceptions of the given {@code exType}.
2257 * The method handle will accept a single argument of {@code exType},
2266 MethodHandle throwException(Class<?> returnType, Class<? extends Throwable> exType) { argument
2267 if (!Throwable.class.isAssignableFrom(exType))
2232 catchException(MethodHandle target, Class<? extends Throwable> exType, MethodHandle handler) argument
[all...]

Completed in 40 milliseconds