ReflectiveInvocationContext encapsulates the context of
a reflective invocation of an executable (method or constructor).
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the arguments of the executable in this invocation context; immutable and nevernullGet the arguments of the executable in this invocation context. |
| public T | Returns: the executable of this invocation context; nevernullGet the method or constructor of this invocation context. |
| public Optional | Returns: the target of the executable of this invocation context; nevernull but potentially emptyGet the target object of this invocation context, if available. |
| public Class | Returns: the target class of this invocation context; nevernullGet the target class of this invocation context. |
| getArguments | back to summary |
|---|---|
| public List Get the arguments of the executable in this invocation context. | |
| getExecutable | back to summary |
|---|---|
| public T getExecutable() Get the method or constructor of this invocation context.
| |
| getTarget | back to summary |
|---|---|
| public Optional Get the target object of this invocation context, if available. If this invocation context represents an instance method, this
method returns the object the method will be invoked on. Otherwise,
if this invocation context represents a static method or
constructor, this method returns | |
| getTargetClass | back to summary |
|---|---|
| public Class Get the target class of this invocation context. If this invocation context represents an instance method, this method returns the class of the object the method will be invoked on, not the class it is declared in. Otherwise, if this invocation represents a static method or constructor, this method returns the class the method or constructor is declared in.
| |