Package org.reflections.util
Class Utils
java.lang.Object
org.reflections.util.Utils
a garbage can of convenient methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Predicate<T> static voidclose(InputStream closeable) static <T> Set<T> filter(Collection<T> result, Predicate<? super T> predicate) static <T> Set<T> filter(Collection<T> result, Predicate<? super T>... predicates) static <T> Set<T> static org.slf4j.LoggerfindLogger(Class<?> aClass) static Set<Constructor> getConstructorsFromDescriptors(Iterable<String> annotatedWith, ClassLoader... classLoaders) static FieldgetFieldFromString(String field, ClassLoader... classLoaders) static MembergetMemberFromDescriptor(String descriptor, ClassLoader... classLoaders) getMembersFromDescriptors(Iterable<String> values, ClassLoader... classLoaders) getMethodsFromDescriptors(Iterable<String> annotatedWith, ClassLoader... classLoaders) static Stringstatic booleanisConstructor(String fqn) static booleanisEmpty compatible with Java 5static Stringjoin(Collection<?> elements, String delimiter) static Stringstatic Stringname(Constructor constructor) static Stringstatic Stringnames(Collection<Class<?>> types) static FileprepareFile(String filename) static String
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
repeat
-
isEmpty
isEmpty compatible with Java 5 -
prepareFile
-
getMemberFromDescriptor
public static Member getMemberFromDescriptor(String descriptor, ClassLoader... classLoaders) throws ReflectionsException - Throws:
ReflectionsException
-
getMethodsFromDescriptors
public static Set<Method> getMethodsFromDescriptors(Iterable<String> annotatedWith, ClassLoader... classLoaders) -
getConstructorsFromDescriptors
public static Set<Constructor> getConstructorsFromDescriptors(Iterable<String> annotatedWith, ClassLoader... classLoaders) -
getMembersFromDescriptors
public static Set<Member> getMembersFromDescriptors(Iterable<String> values, ClassLoader... classLoaders) -
getFieldFromString
-
close
-
findLogger
-
isConstructor
-
name
-
names
-
names
-
name
-
name
-
name
-
index
-
and
-
join
-
filter
-
filter
-
filter
-