protected BshMethod getImportedMethod ( final String name , final Class < ? > [ ] sig ) throws UtilEvalError { // Try object imports for ( final Object object : this . importedObjects ) { final Invocable method = Reflect . resolveJavaMethod ( object . getClass ( ) , name , sig , false /* onlyStatic */ ) ; if ( method != null ) return new BshMethod ( method , object ) ; } // Try static imports for ( final Class < ? > stat : this . importedStatic ) { final Invocable method = Reflect . resolveJavaMethod ( stat , name , sig , true /* onlyStatic */ ) ; if ( method != null ) return new BshMethod ( method , null /* object */ ) ; } return null ; }
Gets the imported method .