Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for TypeVisitor (0.05 seconds)

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

     * recursion by calling {@link #visit} for any {@code Type} while visitation is in progress. For
     * example, this can be used to reject wildcards or type variables contained in a type as in:
     *
     * {@snippet :
     * new TypeVisitor() {
     *   protected void visitParameterizedType(ParameterizedType t) {
     *     visit(t.getOwnerType());
     *     visit(t.getActualTypeArguments());
     *   }
     *   protected void visitGenericArrayType(GenericArrayType t) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 17:27:14 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

    import java.lang.reflect.WildcardType;
    import java.util.ArrayList;
    import java.util.EnumSet;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests of {@link TypeVisitor}.
     *
     * @author Ben Yu
     */
    @NullUnmarked
    public class TypeVisitorTest extends TestCase {
    
      public void testVisitNull() {
        new BaseTypeVisitor()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

    import java.lang.reflect.WildcardType;
    import java.util.ArrayList;
    import java.util.EnumSet;
    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Tests of {@link TypeVisitor}.
     *
     * @author Ben Yu
     */
    @NullUnmarked
    public class TypeVisitorTest extends TestCase {
    
      public void testVisitNull() {
        new BaseTypeVisitor()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/reflect/TypeResolver.java

      }
    
      private static void populateTypeMappings(
          Map<TypeVariableKey, Type> mappings, Type from, Type to) {
        if (from.equals(to)) {
          return;
        }
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> typeVariable) {
            mappings.put(new TypeVariableKey(typeVariable), to);
          }
    
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 22:30:05 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/reflect/Types.java

      }
    
      static @Nullable Type getComponentType(Type type) {
        checkNotNull(type);
        AtomicReference<@Nullable Type> result = new AtomicReference<>();
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            result.set(subtypeOfComponentType(t.getBounds()));
          }
    
          @Override
          void visitWildcardType(WildcardType t) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/reflect/TypeToken.java

       * errors for callers like {@link TypeToInstanceMap}.
       */
      @CanIgnoreReturnValue
      final TypeToken<T> rejectTypeVariables() {
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> type) {
            throw new IllegalArgumentException(
                runtimeType + "contains a type variable and is not safe for the operation");
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
Back to Top