private static Method [ ] getMethods ( Object object ) { Method [ ] methods = methodCache . get ( object . getClass ( ) ) ; if ( methods == null ) { methods = object . getClass ( ) . getMethods ( ) ; methodCache . put ( object . getClass ( ) , methods ) ; } return methods ; }
Determines the class of a given object and returns an array of that class s methods . The information might come from a cache .