Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for visitWildcardType (0.32 seconds)

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

     *     visit(t.getGenericComponentType());
     *   }
     *   protected void visitTypeVariable(TypeVariable<?> t) {
     *     throw new IllegalArgumentException("Cannot contain type variable.");
     *   }
     *   protected void visitWildcardType(WildcardType t) {
     *     throw new IllegalArgumentException("Cannot contain wildcard type.");
     *   }
     * }.visit(type);
     * }
     *
    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

        }.visit(type);
      }
    
      public void testVisitWildcardType() {
        WildcardType type = Types.subtypeOf(String.class);
        assertVisited(type);
        new BaseTypeVisitor() {
          @Override
          void visitWildcardType(WildcardType t) {}
        }.visit(type);
      }
    
      public <T> void testVisitGenericArrayType() {
        Type type = new TypeCapture<T[]>() {}.capture();
        assertVisited(type);
        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

        }.visit(type);
      }
    
      public void testVisitWildcardType() {
        WildcardType type = Types.subtypeOf(String.class);
        assertVisited(type);
        new BaseTypeVisitor() {
          @Override
          void visitWildcardType(WildcardType t) {}
        }.visit(type);
      }
    
      public <T> void testVisitGenericArrayType() {
        Type type = new TypeCapture<T[]>() {}.capture();
        assertVisited(type);
        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

        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> typeVariable) {
            mappings.put(new TypeVariableKey(typeVariable), to);
          }
    
          @Override
          void visitWildcardType(WildcardType fromWildcardType) {
            if (!(to instanceof WildcardType)) {
              return; // okay to say <?> is anything
            }
            WildcardType toWildcardType = (WildcardType) to;
    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

        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {
            result.set(subtypeOfComponentType(t.getBounds()));
          }
    
          @Override
          void visitWildcardType(WildcardType t) {
            result.set(subtypeOfComponentType(t.getUpperBounds()));
          }
    
          @Override
          void visitGenericArrayType(GenericArrayType t) {
            result.set(t.getGenericComponentType());
    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

            throw new IllegalArgumentException(
                runtimeType + "contains a type variable and is not safe for the operation");
          }
    
          @Override
          void visitWildcardType(WildcardType type) {
            visit(type.getLowerBounds());
            visit(type.getUpperBounds());
          }
    
          @Override
          void visitParameterizedType(ParameterizedType type) {
    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