private static Method [ ] getAllDeclaredMethods ( Class < ? > classHierarchy ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; Collection < MethodMap . MethodInfo > methodInfos = MethodMap . getAllDeclaredMethods ( classHierarchy ) ; Method [ ] methods = new Method [ methodInfos . size ( ) ] ; int index = 0 ; for ( MethodMap . MethodInfo methodInfo : methodInfos ) { Method method = methodInfo . getMethod ( ) ; if ( isTraceOn && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "adding method " + method ) ; methods [ index ++ ] = method ; } return methods ; }
Return the non - overridden declared methods for the specified class .