Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getTopLevelClasses (0.14 sec)

  1. android/guava/src/com/google/common/reflect/ClassPath.java

       */
      public ImmutableSet<ClassInfo> getTopLevelClasses() {
        return FluentIterable.from(resources)
            .filter(ClassInfo.class)
            .filter(ClassInfo::isTopLevel)
            .toSet();
      }
    
      /** Returns all top level classes whose package name is {@code packageName}. */
      public ImmutableSet<ClassInfo> getTopLevelClasses(String packageName) {
        checkNotNull(packageName);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        List<Class<?>> classes = Lists.newArrayList();
        String packageName = getClass().getPackage().getName();
        for (ClassPath.ClassInfo classInfo :
            ClassPath.from(getClass().getClassLoader()).getTopLevelClasses(packageName)) {
          Class<?> cls;
          try {
            cls = classInfo.load();
          } catch (NoClassDefFoundError e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        URL url = makeJarUrlWithName("To test unescaped spaces in jar file name.jar");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url}, null);
        assertThat(ClassPath.from(classloader).getTopLevelClasses()).isNotEmpty();
      }
    
      @AndroidIncompatible // ClassPath is documented as not supporting Android
    
      public void testScan_classPathCycle() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 25K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

        List<Class<?>> classes = Lists.newArrayList();
        String packageName = getClass().getPackage().getName();
        for (ClassPath.ClassInfo classInfo :
            ClassPath.from(getClass().getClassLoader()).getTopLevelClasses(packageName)) {
          Class<?> cls;
          try {
            cls = classInfo.load();
          } catch (NoClassDefFoundError e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/ClassPathTest.java

        URL url = makeJarUrlWithName("To test unescaped spaces in jar file name.jar");
        URLClassLoader classloader = new URLClassLoader(new URL[] {url}, null);
        assertThat(ClassPath.from(classloader).getTopLevelClasses()).isNotEmpty();
      }
    
      @AndroidIncompatible // ClassPath is documented as not supporting Android
    
      public void testScan_classPathCycle() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top