private void methods(Class type){
  Method[] list=type.getDeclaredMethods();
  for (  Method method : list) {
    MethodDetail detail=new MethodDetail(method);
    methods.add(detail);
  }
}

private void methods ( Class type ) { Method [ ] list = type . getDeclaredMethods ( ) ; for ( Method method : list ) { MethodDetail detail = new MethodDetail ( method ) ; methods . add ( detail ) ; } }
this is used to scan the type for its declared methods . scanning of the methods in this way allows the detail to prepare a cache that can be used to acquire the methods and the associated annotations . this improves performance on some platforms .
