Bugfix to ClassInfo#getMethod()
; several changes and new API methods.
Bugfix, causing break in API, and therefore a version bump to 2.7.x:
ClassInfo#getMethod(String methodName)
now returnsList<MethodInfo>
rather thanMethodInfo
, i.e. it supports fetching all overloaded methods of the same name.
Other breaking changes:
- Constructors are now named
<init>
inMethodInfo
. ClassInfo#getMethods()
now does not return constructors, to work similarly tojava.lang.reflect
. (See below for methods for fetching constructors.)- Removed deprecated
ClassInfo#getDirectlyAnnotatedClasses()
andClassInfo#getNamesOfDirectlyAnnotatedClasses()
.
Non-breaking changes:
- Added methods
ClassInfo#getConstructors()
andClassInfo#getMethodsAndConstructors()
. (#140, thanks to @febielgiva for the request.) - Added methods
FieldInfo#getClassName()
andMethodInfo#getClassName()
. - For
FieldInfo
andMethodInfo
, addedcompareTo(other)
,equals()
andhashCode()
(#144, thanks to @chrisr3 for the request.)