public class StringReflectionExecutor extends ReflectionExecutor
Modifier and Type | Class and Description |
---|---|
static class |
StringReflectionExecutor.Builder
A builder for
StringReflectionExecutor . |
ReflectionExecutor.InstanceCopyResult
Constructor and Description |
---|
StringReflectionExecutor() |
Modifier and Type | Method and Description |
---|---|
ExecutorInstanceHandler |
getDefaultInstanceHandler()
Provides a default instance handler used by the executor in case the reflective execution
fails.
|
ExecutorMatcher |
getExecutorMatcher()
Get a matcher telling if the executor should be used to execute a certain method.
|
java.util.Optional<ReflectionExecutor.InstanceCopyResult> |
getInstanceOrCopyIfMutable(ReferenceValue instanceValue)
Get an object which will act as the calling instance.
|
getMethodResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isSupportedMethodCall
public java.util.Optional<ReflectionExecutor.InstanceCopyResult> getInstanceOrCopyIfMutable(ReferenceValue instanceValue)
ReflectionExecutor
getInstanceOrCopyIfMutable
in class ReflectionExecutor
instanceValue
- The ReferenceValue
of the instance.public ExecutorMatcher getExecutorMatcher()
Executor
public ExecutorInstanceHandler getDefaultInstanceHandler()
ReflectionExecutor
The handler carries information on whether a method returns the same object as its instance.
getDefaultInstanceHandler
in class ReflectionExecutor