Skip navigation links
C D F G I K L N O P R S T 

C

concat(Object...) - Static method in class org.yop.reflection.Reflection
Concat objects as Strings using an underlying StringBuilder.

D

DECLARED_FIELDS - Static variable in class org.yop.reflection.ReflectionCache
Declared fields for a given class

F

fieldToString(Field) - Static method in class org.yop.reflection.Reflection
A 'toString' method for logging a field with its source class.
findField(Class<T>, Function<T, R>) - Static method in class org.yop.reflection.Reflection
Find a field on a class whose value is returned by the given getter operation.
findField(Class<T>, BiConsumer<T, R>) - Static method in class org.yop.reflection.Reflection
Find a field on a class whose value is returned by the given getter operation.
forName(String, ClassLoader...) - Static method in class org.yop.reflection.Reflection
Find a class for a given class name.

G

get(Class, String) - Static method in class org.yop.reflection.Reflection
Get a field from a class or superclass using the field name.
get1ArgParameter(Field) - Static method in class org.yop.reflection.Reflection
Return the type parameter for a 1-arg generic field.
getAnnotation(Class, Class<A>) - Static method in class org.yop.reflection.Reflection
Find the given annotation instance on the given target class or from its class hierarchy.
getCollectionTarget(Field) - Static method in class org.yop.reflection.Reflection
Find the target class of a field which is a collection.
getConstructor(Class<T>, Class<?>) - Static method in class org.yop.reflection.Reflection
Get the constructor for the given class with the given other class as single parameter.
getDeclaredFields(Class) - Static method in class org.yop.reflection.ReflectionCache
 
getFields(Class) - Static method in class org.yop.reflection.Reflection
Get all the non synthetic fields of a class.
getFields(Class, Class<? extends Annotation>) - Static method in class org.yop.reflection.Reflection
Get all non synthetic fields of a class, with a given annotation.
getGetterCollectionTarget(Class<S>, Function<S, ? extends Collection<T>>) - Static method in class org.yop.reflection.Reflection
Find the target class of a getter when the field is a collection.
getGetterTarget(Class<S>, Function<S, T>) - Static method in class org.yop.reflection.Reflection
Find the target class of a getter.
getMethod(Class<?>, String, Class<?>...) - Static method in class org.yop.reflection.Reflection
Get an existing method on a given class, with the given parameters.
getMethods(Class<?>) - Static method in class org.yop.reflection.Reflection
Gets an array of all methods in a class hierarchy walking up recursively to parent classes.
getSetterCollectionTarget(Class<S>, BiConsumer<S, ? extends Collection<T>>) - Static method in class org.yop.reflection.Reflection
Find the target class of a setter when the field is a collection.
getSetterTarget(Class<S>, BiConsumer<S, T>) - Static method in class org.yop.reflection.Reflection
Find the target class of a setter.
getTarget(Field) - Static method in class org.yop.reflection.Reflection
Find the target class of a field be it a collection or not.

I

implementationOf(Class<T>) - Static method in class org.yop.reflection.Reflection
Returns the first known implementation of a class.
implementationOf(Class<T>) - Static method in class org.yop.reflection.ReflectionCache
Returns the first known implementation of a class.
isConcrete(Class<T>) - Static method in class org.yop.reflection.Reflection
Check if a type is concrete (a.k.a can be instantiated)

K

KNOWN_IMPLEMENTATIONS - Static variable in class org.yop.reflection.ReflectionCache
Reference implementations for common interfaces

L

logger - Static variable in class org.yop.reflection.Reflection
 

N

newInstanceNoArgs(Class<T>) - Static method in class org.yop.reflection.Reflection
Instantiate a new object using 0-arg constructor.
newInstanceUnsafe(Class<T>) - Static method in class org.yop.reflection.Reflection
Return a new instance of a given class, for field testing purposes (see Reflection.findField(Class, Function).

O

org.yop.reflection - package org.yop.reflection
 

P

packageName(Class<?>) - Static method in class org.yop.reflection.Reflection
Read the package name of a class.
primitiveCheck(Field, Function<T, R>, T, Object, R) - Static method in class org.yop.reflection.Reflection
Check a primitive field value against a setter, twice, using Reflection.primitiveTestValue(Class, short) with a salt of 1.
primitiveTestValue(Class<?>, short) - Static method in class org.yop.reflection.Reflection
Returns a test value (see Reflection.TEST_LONG for instance) for the given primitive type.

R

readField(Field, Object) - Static method in class org.yop.reflection.Reflection
Read the value of a field on a target object.
readField(String, Object) - Static method in class org.yop.reflection.Reflection
Read the value of a field on a target object.
Reflection - Class in org.yop.reflection
Utility class for reflection-based method.
Reflection() - Constructor for class org.yop.reflection.Reflection
 
ReflectionCache - Class in org.yop.reflection
A static cache for anything related to Reflection.
ReflectionCache() - Constructor for class org.yop.reflection.ReflectionCache
 
ReflectionException - Exception in org.yop.reflection
An exception that occurred when using Reflection and/or the java.lang.reflect API.
ReflectionException(String) - Constructor for exception org.yop.reflection.ReflectionException
 
ReflectionException(String, Throwable) - Constructor for exception org.yop.reflection.ReflectionException
 

S

set(Field, Object, Object) - Static method in class org.yop.reflection.Reflection
Set the value value of a field for a given instance.
setFrom(Field, Object, Object) - Static method in class org.yop.reflection.Reflection
Set the value value of a field for a given instance, from another instance.

T

TEST_BOOL - Static variable in class org.yop.reflection.Reflection
 
TEST_BYTE - Static variable in class org.yop.reflection.Reflection
 
TEST_CHAR - Static variable in class org.yop.reflection.Reflection
 
TEST_DOUBLE - Static variable in class org.yop.reflection.Reflection
 
TEST_FLOAT - Static variable in class org.yop.reflection.Reflection
 
TEST_INT - Static variable in class org.yop.reflection.Reflection
 
TEST_LONG - Static variable in class org.yop.reflection.Reflection
 
TEST_SHORT - Static variable in class org.yop.reflection.Reflection
 
C D F G I K L N O P R S T 
Skip navigation links

Copyright © 2019. All rights reserved.