Package bridge
Class Invocation.Executor
java.lang.Object
bridge.Invocation.Executor
- Enclosing class:
- Invocation
A class that is used to build method invocations
- Notes:
- Invocations must be constructed and completed in a single statement. Partial invocations may not be stored.
-
Method Summary
Modifier and TypeMethodDescription<X extends Throwable>
Invocation.Executorcheck()
Brings an exception into scope<X extends Throwable>
Invocation.ExecutorBrings an exception into scope<@Polymorphic T>
Tinvoke()
Executes the methodAdds an argument to the stackAdds an argument to the stackAdds an argument to the stack
-
Method Details
-
with
Adds an argument to the stack- Parameters:
argument
- Argument value- Returns:
- An imaginary reference for you to continue executing your request with.
- Notes:
- Calling this overload will cause the parameter type to be determined automatically.
-
with
Adds an argument to the stack- Parameters:
parameter
- Parameter type constant – no dynamic values are permitted here.argument
- Argument value- Returns:
- An imaginary reference for you to continue executing your request with.
- Throws:
ClassCastException
- When the argument is not convertible to the provided parameter type.
-
with
Adds an argument to the stack- Parameters:
parameter
- Parameter type name constant – no dynamic values or string manipulation is permitted here.argument
- Argument value- Returns:
- An imaginary reference for you to continue executing your request with.
- Throws:
NoClassDefFoundError
- When no type with the provided name can be resolved.ClassCastException
- When the argument is not convertible to the provided parameter type.
-
check
Brings an exception into scope- Type Parameters:
X
- Exception type- Returns:
- An imaginary reference for you to continue executing your request with.
- Throws:
X
- When the invoked method throwsX
.
-
check
Brings an exception into scope- Type Parameters:
X
- Exception type- Parameters:
exception
- Exception type constant – no dynamic values are permitted here.- Returns:
- An imaginary reference for you to continue executing your request with.
- Throws:
X
- When the invoked method throwsX
.
-
invoke
Executes the method- Type Parameters:
T
- Requested type- Returns:
- The real return value of the method.
- Throws:
NoSuchMethodError
- When no method with the provided description can be resolved.IllegalAccessError
- When the resolved method's access modifiers prevent it from being invoked.IncompatibleClassChangeError
- When the resolved method is accessed from the wrong context.AbstractMethodError
- When the resolved method isabstract
and no implementation exists.UnsatisfiedLinkError
- When the resolved method isnative
and no implementation exists.NullPointerException
- When the resolved method is an instance method and the instance isnull
.ClassCastException
- When the returned value is not convertible to the requested type.
-