- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getPackageName (0.1 sec)
-
android/guava/src/com/google/common/reflect/ClassPath.java
* {@code class.getPackage().getName()} produces a {@code NullPointerException} because {@code * class.getPackage()} returns {@code null}. */ public String getPackageName() { return Reflection.getPackageName(className); } /** * Returns the simple name of the underlying class as given in the source code. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 05 17:43:40 UTC 2022 - 24.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
// a file. String visiblePackage = Reflection.getPackageName(cls); ImmutableList.Builder<Method> builder = ImmutableList.builder(); for (Class<?> type : TypeToken.of(cls).getTypes().rawTypes()) { if (!Reflection.getPackageName(type).equals(visiblePackage)) { break; } for (Method method : type.getDeclaredMethods()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 22.6K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java
} public String getClassName() { return className; } public String getSimpleName() { return StringUtils.substringAfterLast(className, "."); } public String getPackageName() { return packageName; } public boolean isInterface() { return metaType == MetaType.INTERFACE; } public boolean isGroovy() { return isGroovy; }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 10.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
} public void testGetPackageName() { assertEquals( "", new ClassInfo(FILE, "Foo.class", getClass().getClassLoader()).getPackageName()); assertEquals( "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName()); } // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources() @AndroidIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 25K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/NullPointerTester.java
// a file. String visiblePackage = Reflection.getPackageName(cls); ImmutableList.Builder<Method> builder = ImmutableList.builder(); for (Class<?> type : TypeToken.of(cls).getTypes().rawTypes()) { if (!Reflection.getPackageName(type).equals(visiblePackage)) { break; } for (Method method : type.getDeclaredMethods()) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 23.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/ClassPathTest.java
} public void testGetPackageName() { assertEquals( "", new ClassInfo(FILE, "Foo.class", getClass().getClassLoader()).getPackageName()); assertEquals( "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName()); } // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources() @AndroidIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 22:09:38 UTC 2024 - 27.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
this.declaringClass = declaringClass; this.factories = factories; this.factoryMethodsDescription = factoryMethodsDescription; packagesToTest.add(Reflection.getPackageName(declaringClass)); } /** * Specifies that only the methods that are declared to return {@code returnType} or its subtype * are tested. * * @return this tester object */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 32.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ClassUtil.java
} } /** * パッケージ名を返します。 * * @param clazz * クラス。{@literal null}であってはいけません * @return パッケージ名 */ public static String getPackageName(final Class<?> clazz) { assertArgumentNotNull("clazz", clazz); final String fqcn = clazz.getName(); final int pos = fqcn.lastIndexOf('.'); if (pos > 0) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 27.5K bytes - Viewed (0)