Class ReflectionUtils
java.lang.Object
org.apache.sshd.common.util.ReflectionUtils
- Author:
- Apache MINA SSHD Project
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<Field> getMatchingDeclaredFields(Class<?> clazz, Predicate<? super Field> acceptor) static Collection<Field> getMatchingFields(Class<?> clazz, Predicate<? super Field> acceptor) static ObjectnewInstance(Class<?> clazz) static <T> TnewInstance(Class<?> clazz, Class<? extends T> castType)
-
Field Details
-
FIELD_NAME_EXTRACTOR
-
-
Method Details
-
getMatchingFields
public static Collection<Field> getMatchingFields(Class<?> clazz, Predicate<? super Field> acceptor) -
getMatchingDeclaredFields
public static Collection<Field> getMatchingDeclaredFields(Class<?> clazz, Predicate<? super Field> acceptor) -
newInstance
- Throws:
ReflectiveOperationException
-
newInstance
public static <T> T newInstance(Class<?> clazz, Class<? extends T> castType) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-