Skip navigation links
C E F G H I J M N O P R S T W 

C

classForName(String) - Static method in class org.srplib.reflection.ReflectionUtils
An alternative to Class.forName(String) which wraps checked ClassNotFoundException exception into unchecked ReflectionException
constructor(Class<T>) - Static method in class org.srplib.reflection.ReflectionInvoker
Create constructor invoker.

E

EMPTY_ARGUMENTS - Static variable in class org.srplib.reflection.ReflectionUtils
Predeclared empty object array (new Object[0]).
EMPTY_TYPES - Static variable in class org.srplib.reflection.ReflectionUtils
Predeclared empty class array (new Class[0]).
emptyInstance(Class<T>) - Static method in class org.srplib.reflection.ProxyUtils
Creates an empty implementation of specified interface.
EmptyInvocationHandler - Class in org.srplib.reflection
An empty implementation of InvocationHandler.
EmptyInvocationHandler() - Constructor for class org.srplib.reflection.EmptyInvocationHandler
 
errorMessage(String, Object...) - Method in class org.srplib.reflection.ReflectionInvoker
An error message to be added to standard exception message.

F

findField(Class<?>, String) - Static method in class org.srplib.reflection.ReflectionUtils
Returns declared field of specified class.
findFieldRecursively(Class<?>, String) - Static method in class org.srplib.reflection.ReflectionUtils
Searches recursively and returns declared field with specified name.
findFieldRecursively(Class<?>, Path) - Static method in class org.srplib.reflection.ReflectionUtils
Searches field specified as Path.
findMethod(Class<?>, String, Class<?>...) - Static method in class org.srplib.reflection.ReflectionUtils
Searches and returns specified method in specified class.
findMethodRecursively(Class<?>, String, Class<?>...) - Static method in class org.srplib.reflection.ReflectionUtils
Searches and returns specified method recursively.

G

getDefaultValue(Class<T>) - Static method in class org.srplib.reflection.Types
Returns default value for specified primitive or wrapper type.
getEmpty() - Static method in class org.srplib.reflection.ProxyUtils
Returns invocation handler which does nothing.
getField(Class<?>, String) - Static method in class org.srplib.reflection.ReflectionUtils
Returns declared field of specified class.
getFieldRecursively(Class<?>, Path) - Static method in class org.srplib.reflection.ReflectionUtils
Searches recursively and returns declared field with specified name.
getFieldRecursively(Class<?>, String) - Static method in class org.srplib.reflection.ReflectionUtils
Searches recursively and returns declared field with specified name.
getFields(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Returns list of declared fields of specified class.
getFieldsRecursively(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Returns list of declared fields of specified class including fields of superclasses.
getFieldType(Class<?>, String) - Static method in class org.srplib.reflection.ReflectionUtils
Returns field type.
getFieldValue(Object, Field) - Static method in class org.srplib.reflection.ReflectionUtils
Set value of specified field of specified object.
getFieldValue(Object, String) - Static method in class org.srplib.reflection.ReflectionUtils
Returns value of specified property of specified object.
getFieldValue(Object, Path) - Static method in class org.srplib.reflection.ReflectionUtils
Returns value of nested field specified as path.
getInitValue(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Returns init value for specified class (including classes representing primitives).
getMethod(Class<?>, String, Class<?>...) - Static method in class org.srplib.reflection.ReflectionUtils
Searches and returns specified method in specified class.
getMethodRecursively(Class<?>, String, Class<?>...) - Static method in class org.srplib.reflection.ReflectionUtils
Searches and returns specified method recursively.
getPrimitive(Class<T>) - Static method in class org.srplib.reflection.Types
Returns primitive type for specified wrapper type.
getPrimitives() - Static method in class org.srplib.reflection.Types
Returns all java primitive types.
getTypeParameter(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Returns first generic type parameter of specified class.
getTypeParameter(Class<?>, String, Object...) - Static method in class org.srplib.reflection.ReflectionUtils
Returns first generic type parameter of specified class with specific error message.
getTypeParameters(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Returns first generic type parameter of specified class.
getWrapper(Class<T>) - Static method in class org.srplib.reflection.Types
Returns wrapper for specified primitive type.
getWrappers() - Static method in class org.srplib.reflection.Types
Returns all java primitive wrapper types.

H

hasConstructor(Class<?>, Class<?>[]) - Static method in class org.srplib.reflection.ReflectionUtils
Checks for constructor existence.

I

invoke(Object, Method, Object[]) - Method in class org.srplib.reflection.EmptyInvocationHandler
 
invoke(Object...) - Method in class org.srplib.reflection.ReflectionInvoker
Creates new instance.
invokeMethod(Object, Method, Object...) - Static method in class org.srplib.reflection.ReflectionInvoker
Invokes specified method of specified target using reflection.
invokeMethod(Method, Object, Object...) - Static method in class org.srplib.reflection.ReflectionUtils
Deprecated.
use invokeMethod(Object, Method, Object...)
invokeMethod(Object, Method, Object...) - Static method in class org.srplib.reflection.ReflectionUtils
Invokes specified method of specified target using reflection.
isArray(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Deprecated.
use Types class
isArray(Class<?>) - Static method in class org.srplib.reflection.Types
Tests if specified class is an array.
isCollection(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Tests if specified class is a collection.
isComplexType(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Tests if specified class represents "complex" type.
isMap(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Tests if specified class is a map.
isNumber(Class<?>) - Static method in class org.srplib.reflection.Types
 
isPrimitive(Class<?>) - Static method in class org.srplib.reflection.Types
Tests if specified class is a primitive wrapper.
isPrimitiveArray(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Deprecated.
use Types class
isPrimitiveArray(Class<?>) - Static method in class org.srplib.reflection.Types
Tests if specified class is an array of primitives.
isPrimitiveWrapper(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Deprecated.
use Types class
isPrimitiveWrapperArray(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Deprecated.
use Types class
isSimpleType(Class<?>) - Static method in class org.srplib.reflection.ReflectionUtils
Tests if specified class represents "simple" type.
isSyntheticName(String) - Static method in class org.srplib.reflection.ReflectionUtils
Tests if specified name is a synthetic name.
isWrapper(Class<?>) - Static method in class org.srplib.reflection.Types
Tests if specified class is a primitive wrapper.
isWrapperArray(Class<?>) - Static method in class org.srplib.reflection.Types
Tests if specified class is an array of primitive wrapper.

J

join(String, Object...) - Static method in class org.srplib.reflection.ToStringHelper
Joins object array using specified separator.
joinClassNames(String, Class<?>...) - Static method in class org.srplib.reflection.ToStringHelper
Joins class names using specified separator.

M

method(Class<T>, String) - Static method in class org.srplib.reflection.ReflectionInvoker
Create method invoker for specified class and method name.
method(T, String) - Static method in class org.srplib.reflection.ReflectionInvoker
Create method invoker for specified method of target object.

N

newInstance(Class<T>, Class[], Object[]) - Static method in class org.srplib.reflection.ReflectionInvoker
Creates instance of specified class and wraps checked exceptions into unchecked ones.
newInstance(Class<T>, Class[], Object[]) - Static method in class org.srplib.reflection.ReflectionUtils
Creates instance of specified class and wraps checked exceptions into unchecked ones.
newInstance(Class<T>) - Static method in class org.srplib.reflection.ReflectionUtils
Creates instance of specified class and wraps checked exceptions into unchecked ones.
newInstance(String) - Static method in class org.srplib.reflection.ReflectionUtils
Creates instance of specified class and wraps checked exceptions into unchecked ones.

O

org.srplib.reflection - package org.srplib.reflection
 

P

parameters(List<Class<?>>) - Method in class org.srplib.reflection.ReflectionInvoker
Specify parameter parameters as list.
parameters(Class<?>...) - Method in class org.srplib.reflection.ReflectionInvoker
Specify parameter parameters as vararg.
ProxyUtils - Class in org.srplib.reflection
Helper class containing static utility methods.
ProxyUtils() - Constructor for class org.srplib.reflection.ProxyUtils
 

R

ReflectionException - Exception in org.srplib.reflection
Exception is used to wrap reflection API exceptions.
ReflectionException() - Constructor for exception org.srplib.reflection.ReflectionException
 
ReflectionException(String) - Constructor for exception org.srplib.reflection.ReflectionException
 
ReflectionException(String, Throwable) - Constructor for exception org.srplib.reflection.ReflectionException
 
ReflectionException(Throwable) - Constructor for exception org.srplib.reflection.ReflectionException
 
ReflectionInvoker<T,V> - Class in org.srplib.reflection
Simplifies method invocation via reflection.
ReflectionInvoker(Class<T>, String, Class<?>...) - Constructor for class org.srplib.reflection.ReflectionInvoker
Creates builder for specified class.
ReflectionUtils - Class in org.srplib.reflection
Helper class containing static utility methods for simplifying reflection API.
ReflectionUtils() - Constructor for class org.srplib.reflection.ReflectionUtils
 

S

setFieldValue(Object, Field, Object) - Static method in class org.srplib.reflection.ReflectionUtils
Set value of specified field of specified object.
setFieldValue(Object, String, Object) - Static method in class org.srplib.reflection.ReflectionUtils
Set value of specified field of specified object.
setFieldValue(Object, Path, Object) - Static method in class org.srplib.reflection.ReflectionUtils
Set value of specified field of specified object.

T

target(T) - Method in class org.srplib.reflection.ReflectionInvoker
Specify parameter parameters as list.
toString(Class<?>, String, Class<?>[], Object[]) - Static method in class org.srplib.reflection.ToStringHelper
Returns string representation of method or constructor invocation.
toString(Class<?>, String, Class<?>[]) - Static method in class org.srplib.reflection.ToStringHelper
Returns string representation of method or constructor signature.
toString(Class<?>, String) - Static method in class org.srplib.reflection.ToStringHelper
Returns string representation of field.
ToStringHelper - Class in org.srplib.reflection
Helper method for pretty printing reflection data (method signature, field declaration, etc.)
ToStringHelper() - Constructor for class org.srplib.reflection.ToStringHelper
 
Types - Class in org.srplib.reflection
Collection of utilities for java types.
Types() - Constructor for class org.srplib.reflection.Types
 

W

WRAPPERS - Static variable in class org.srplib.reflection.ReflectionUtils
Set containing primitive wrapper classes.
C E F G H I J M N O P R S T W 
Skip navigation links