Package com.fasterxml.classmate

Examples of com.fasterxml.classmate.MemberResolver


  }

  @Override
  public ResolvedTypeWithMembers resolveMemberTypes(ResolvedType type) {
    // todo : is there a reason we create this resolver every time?
    MemberResolver memberResolver = new MemberResolver( typeResolver );
    return memberResolver.resolve( type, null, null );
  }
View Full Code Here


      return true;
    }

    ResolvedType resolvedSubType = typeResolver.resolve( subTypeMethod.getDeclaringClass() );

    MemberResolver memberResolver = new MemberResolver( typeResolver );
    memberResolver.setMethodFilter( new SimpleMethodFilter( subTypeMethod, superTypeMethod ) );
    ResolvedTypeWithMembers typeWithMembers = memberResolver.resolve(
        resolvedSubType,
        null,
        null
    );
View Full Code Here

  }

  @Override
  public ResolvedTypeWithMembers resolveMemberTypes(ResolvedType type) {
    // todo : is there a reason we create this resolver every time?
    MemberResolver memberResolver = new MemberResolver( typeResolver );
    return memberResolver.resolve( type, null, null );
  }
View Full Code Here

    return name;
  }

  public static ResolvedTypeWithMembers resolveMemberTypes(Class<?> clazz) {
    ResolvedType resolvedType = typeResolver.resolve( clazz );
    MemberResolver memberResolver = new MemberResolver( typeResolver );
    return memberResolver.resolve( resolvedType, null, null );
  }
View Full Code Here

    MemberResolver memberResolver = new MemberResolver( typeResolver );
    return memberResolver.resolve( resolvedType, null, null );
  }

  public static ResolvedTypeWithMembers resolveMemberTypes(ResolvedType type) {
    MemberResolver memberResolver = new MemberResolver( typeResolver );
    return memberResolver.resolve( type, null, null );
  }
View Full Code Here

    {
        List<String> fields = new ArrayList<String>();
        TypeResolver typeResolver = new TypeResolver();
        ResolvedType resolvedType = typeResolver.resolve(type);

        MemberResolver memberResolver = new MemberResolver(typeResolver);
        ResolvedTypeWithMembers typeWithMembers = memberResolver.resolve(resolvedType, null, null);

        for (ResolvedField field : typeWithMembers.getMemberFields())
        {
            fields.add(field.getName());
        }
View Full Code Here

      return true;
    }

    ResolvedType resolvedSubType = typeResolver.resolve( subTypeMethod.getDeclaringClass() );

    MemberResolver memberResolver = new MemberResolver( typeResolver );
    memberResolver.setMethodFilter( new SimpleMethodFilter( subTypeMethod, superTypeMethod ) );
    ResolvedTypeWithMembers typeWithMembers = memberResolver.resolve(
        resolvedSubType,
        null,
        null
    );
View Full Code Here

      return true;
    }

    ResolvedType resolvedSubType = typeResolver.resolve( subTypeMethod.getDeclaringClass() );

    MemberResolver memberResolver = new MemberResolver( typeResolver );
    memberResolver.setMethodFilter( new SimpleMethodFilter( subTypeMethod, superTypeMethod ) );
    ResolvedTypeWithMembers typeWithMembers = memberResolver.resolve(
        resolvedSubType,
        null,
        null
    );
View Full Code Here

      }
    };
  }

  public com.google.common.collect.ImmutableList<ResolvedMethod> in(ResolvedType resolvedType) {
    MemberResolver resolver = new MemberResolver(typeResolver);
    resolver.setIncludeLangObject(false);
    if (resolvedType.getErasedType() == Object.class) {
      return ImmutableList.of();
    }
    ResolvedTypeWithMembers typeWithMembers = resolver.resolve(resolvedType, null, null);
    return FluentIterable
            .from(newArrayList(typeWithMembers.getMemberMethods()))
            .filter(onlyGettersAndSetters()).toList();
  }
View Full Code Here

  public FieldProvider(TypeResolver typeResolver) {
    this.typeResolver = typeResolver;
  }

  public Iterable<? extends ResolvedField> in(ResolvedType resolvedType) {
    MemberResolver memberResolver = new MemberResolver(typeResolver);
    if (resolvedType.getErasedType() == Object.class) {
      return newArrayList();
    }
    ResolvedTypeWithMembers resolvedMemberWithMembers = memberResolver.resolve(resolvedType, null, null);
    return newArrayList(resolvedMemberWithMembers.getMemberFields());
  }
View Full Code Here

TOP

Related Classes of com.fasterxml.classmate.MemberResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.