Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TypeVisitor (0.3 sec)

  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:
     *
     * <pre>{@code
     * new TypeVisitor() {
     *   protected void visitParameterizedType(ParameterizedType t) {
     *     visit(t.getOwnerType());
     *     visit(t.getActualTypeArguments());
     *   }
     *   protected void visitGenericArrayType(GenericArrayType 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

    import java.lang.reflect.TypeVariable;
    import java.lang.reflect.WildcardType;
    import java.util.ArrayList;
    import java.util.EnumSet;
    import junit.framework.TestCase;
    
    /**
     * Tests of {@link TypeVisitor}.
     *
     * @author Ben Yu
     */
    public class TypeVisitorTest extends TestCase {
    
      public void testVisitNull() {
        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

      }
    
      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
    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

      }
    
      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
    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