public final class Reflection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Predicates.Predicate1<java.lang.reflect.Constructor<?>> |
constructorEqual(java.lang.reflect.Constructor<?> _constructor)
Predicate evaluating to true if given constructor equals the processed value
|
static Predicates.Predicate1<java.lang.reflect.Field> |
fieldEqual(java.lang.reflect.Field _field)
Predicate evaluating to true if given field equals the processed value
|
static Predicates.Predicate1<java.lang.reflect.Field> |
fieldNameEquals(java.lang.String _name)
Predicate evaluating to true if a field name matches the given name
|
static Predicates.Predicate1<java.lang.reflect.Field> |
fieldNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a field name matches the given name
|
static <T> Predicates.Predicate1<T> |
instanceOf(java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the class specified
|
static <T> Predicates.Predicate1<T> |
isExtending(java.lang.Class<?> _class)
Predicate that returns true if the function argument is a subclass of the class specified
|
static Predicates.Predicate1<java.lang.reflect.Method> |
isGetter()
Predicate evaluating to true if given method is getter
|
static <T> Predicates.Predicate1<T> |
isImplementing(java.lang.Class<?> _class)
Predicate that returns true if the function argument is an instance of the interface specified
|
static <T> Predicates.Predicate1<T> |
isNotExtending(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not a subclass of the class specified
|
static <T> Predicates.Predicate1<T> |
isNotImplementing(java.lang.Class<?> _class)
Predicate that returns true if the function argument is not an instance of the interface specified
|
static Predicates.Predicate1<java.lang.reflect.Method> |
isSetter()
Predicate evaluating to true if given method is setter
|
static Predicates.Predicate1<MemberInfo> |
memberEqual(MemberInfo _member)
Predicate evaluating to true if given member equals the processed value
|
static Predicates.Predicate1<MemberInfo> |
memberNameEquals(java.lang.String _name)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<MemberInfo> |
memberNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<java.lang.reflect.Method> |
methodEqual(java.lang.reflect.Method _method)
Predicate evaluating to true if given method equals the processed value
|
static Predicates.Predicate1<java.lang.reflect.Method> |
methodNameEquals(java.lang.String _name)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<java.lang.reflect.Method> |
methodNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<PropertyInfo> |
propertyEqual(PropertyInfo _member)
Predicate evaluating to true if given property equals the processed value
|
static Predicates.Predicate1<PropertyInfo> |
propertyNameEquals(java.lang.String _name)
Predicate evaluating to true if a method name matches the given name
|
static Predicates.Predicate1<PropertyInfo> |
propertyNameEquals(java.lang.String _name,
StringComparison _comparison)
Predicate evaluating to true if a property name matches the given name
|
public static Predicates.Predicate1<java.lang.reflect.Method> isGetter()
public static Predicates.Predicate1<java.lang.reflect.Method> isSetter()
public static Predicates.Predicate1<java.lang.reflect.Constructor<?>> constructorEqual(java.lang.reflect.Constructor<?> _constructor)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<java.lang.reflect.Field> fieldEqual(java.lang.reflect.Field _field)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<MemberInfo> memberEqual(MemberInfo _member)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<java.lang.reflect.Method> methodEqual(java.lang.reflect.Method _method)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<PropertyInfo> propertyEqual(PropertyInfo _member)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<java.lang.reflect.Field> fieldNameEquals(java.lang.String _name)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<java.lang.reflect.Field> fieldNameEquals(java.lang.String _name, StringComparison _comparison)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<MemberInfo> memberNameEquals(java.lang.String _name)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<MemberInfo> memberNameEquals(java.lang.String _name, StringComparison _comparison)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<java.lang.reflect.Method> methodNameEquals(java.lang.String _name)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<java.lang.reflect.Method> methodNameEquals(java.lang.String _name, StringComparison _comparison)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<PropertyInfo> propertyNameEquals(java.lang.String _name)
java.lang.NullPointerException
- An argument is nullpublic static Predicates.Predicate1<PropertyInfo> propertyNameEquals(java.lang.String _name, StringComparison _comparison)
java.lang.NullPointerException
- An argument is nullpublic static <T> Predicates.Predicate1<T> isExtending(java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-class (e.g. interface) was providedpublic static <T> Predicates.Predicate1<T> isImplementing(java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-interface (e.g. class) was providedpublic static <T> Predicates.Predicate1<T> isNotExtending(java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-class (e.g. interface) was providedpublic static <T> Predicates.Predicate1<T> isNotImplementing(java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is nulljava.lang.IllegalArgumentException
- When a non-interface (e.g. class) was providedpublic static <T> Predicates.Predicate1<T> instanceOf(java.lang.Class<?> _class)
java.lang.NullPointerException
- When an argument is null