Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for visitTypeVariable (0.12 sec)

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

     *     visit(t.getOwnerType());
     *     visit(t.getActualTypeArguments());
     *   }
     *   protected void visitGenericArrayType(GenericArrayType t) {
     *     visit(t.getGenericComponentType());
     *   }
     *   protected void visitTypeVariable(TypeVariable<?> t) {
     *     throw new IllegalArgumentException("Cannot contain type variable.");
     *   }
     *   protected void visitWildcardType(WildcardType t) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

        }.visit(String.class);
      }
    
      public <T> void testVisitTypeVariable() {
        Type type = new TypeCapture<T>() {}.capture();
        assertVisited(type);
        new BaseTypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> t) {}
        }.visit(type);
      }
    
      public void testVisitWildcardType() {
        WildcardType type = Types.subtypeOf(String.class);
        assertVisited(type);
        new BaseTypeVisitor() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeResolver.java

          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
          void visitWildcardType(WildcardType fromWildcardType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/TypeResolver.java

          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
          void visitWildcardType(WildcardType fromWildcardType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/Types.java

      @CheckForNull
      static 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top