V
- The type of object in this map.public class ReflectionMap<V> extends Object
The valid pattern matches are:
Modifier and Type | Class and Description |
---|---|
static class |
ReflectionMap.Builder<V>
Creates a new builder object for
ReflectionMap objects. |
Modifier and Type | Method and Description |
---|---|
List<V> |
appendAll(Class<?> c,
Class<? extends V> ofType,
List<V> l)
Finds all values in this map that matches the specified class.
|
List<V> |
appendAll(Constructor<?> c,
Class<? extends V> ofType,
List<V> l)
Finds all values in this map that matches the specified constructor.
|
List<V> |
appendAll(Field f,
Class<? extends V> ofType,
List<V> l)
Finds all values in this map that matches the specified field.
|
List<V> |
appendAll(Method m,
Class<? extends V> ofType,
List<V> l)
Finds all values in this map that matches the specified method.
|
static <V> ReflectionMap.Builder<V> |
create(Class<V> c)
Static builder creator.
|
Optional<V> |
find(Class<?> c)
Finds first value in this map that matches the specified class.
|
Optional<V> |
find(Class<?> c,
Class<? extends V> ofType)
Finds first value in this map that matches the specified class.
|
Optional<V> |
find(Constructor<?> c)
Finds first value in this map that matches the specified constructor.
|
Optional<V> |
find(Constructor<?> c,
Class<? extends V> ofType)
Finds first value in this map that matches the specified constructor.
|
Optional<V> |
find(Field f)
Finds first value in this map that matches the specified field.
|
Optional<V> |
find(Field f,
Class<? extends V> ofType)
Finds first value in this map that matches the specified field.
|
Optional<V> |
find(Method m)
Finds first value in this map that matches the specified method.
|
Optional<V> |
find(Method m,
Class<? extends V> ofType)
Finds first value in this map that matches the specified method.
|
List<V> |
findAll(Class<?> c)
Finds all values in this map that matches the specified class.
|
List<V> |
findAll(Class<?> c,
Class<? extends V> ofType)
Finds all values in this map that matches the specified class.
|
List<V> |
findAll(Constructor<?> c)
Finds all values in this map that matches the specified constructor.
|
List<V> |
findAll(Constructor<?> c,
Class<? extends V> ofType)
Finds all values in this map that matches the specified constructor.
|
List<V> |
findAll(Field f)
Finds all values in this map that matches the specified field.
|
List<V> |
findAll(Field f,
Class<? extends V> ofType)
Finds all values in this map that matches the specified field.
|
List<V> |
findAll(Method m)
Finds all values in this map that matches the specified method.
|
List<V> |
findAll(Method m,
Class<? extends V> ofType)
Finds all values in this map that matches the specified method.
|
String |
toString() |
public static <V> ReflectionMap.Builder<V> create(Class<V> c)
V
- The type of object in this map.c
- The type of object in this map.public Optional<V> find(Class<?> c, Class<? extends V> ofType)
c
- The class to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Class<?> c)
c
- The class to test for.public List<V> findAll(Class<?> c, Class<? extends V> ofType)
c
- The class to test for.ofType
- Only return objects of the specified type.public List<V> findAll(Class<?> c)
c
- The class to test for.public List<V> appendAll(Class<?> c, Class<? extends V> ofType, List<V> l)
c
- The class to test for.ofType
- Only return objects of the specified type.l
- The list to append values to. Can be public Optional<V> find(Method m, Class<? extends V> ofType)
m
- The method to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Method m)
m
- The method to test for.public List<V> findAll(Method m, Class<? extends V> ofType)
m
- The method to test for.ofType
- Only return objects of the specified type.public List<V> findAll(Method m)
m
- The method to test for.public List<V> appendAll(Method m, Class<? extends V> ofType, List<V> l)
m
- The method to test for.ofType
- Only return objects of the specified type.l
- The list to append values to. Can be public Optional<V> find(Field f, Class<? extends V> ofType)
f
- The field to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Field f)
f
- The field to test for.public List<V> findAll(Field f, Class<? extends V> ofType)
f
- The field to test for.ofType
- Only return objects of the specified type.public List<V> findAll(Field f)
f
- The field to test for.public List<V> appendAll(Field f, Class<? extends V> ofType, List<V> l)
f
- The field to test for.ofType
- Only return objects of the specified type.l
- The list to append values to. Can be public Optional<V> find(Constructor<?> c, Class<? extends V> ofType)
c
- The constructor to test for.ofType
- Only return objects of the specified type.public Optional<V> find(Constructor<?> c)
c
- The constructor to test for.public List<V> findAll(Constructor<?> c, Class<? extends V> ofType)
c
- The constructor to test for.ofType
- Only return objects of the specified type.public List<V> findAll(Constructor<?> c)
c
- The constructor to test for.public List<V> appendAll(Constructor<?> c, Class<? extends V> ofType, List<V> l)
c
- The constructor to test for.ofType
- Only return objects of the specified type.l
- The list to append values to. Can be Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.