Package com.fasterxml.classmate

Examples of com.fasterxml.classmate.MemberResolver.resolve()


  @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 );
  }

  @Override
  public ServiceRegistry getServiceRegistry() {
    return getMetadataImplementor().getServiceRegistry();
View Full Code Here


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

  @Override
  public ServiceRegistry getServiceRegistry() {
    return getMetadataImplementor().getServiceRegistry();
View Full Code Here

  }

  public static ResolvedTypeWithMembers resolveMemberTypes(Class<?> clazz) {
    ResolvedType resolvedType = typeResolver.resolve( clazz );
    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

    return memberResolver.resolve( resolvedType, null, null );
  }

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

  public static boolean isProperty(Member m) {
    if ( m instanceof Method ) {
      Method method = (Method) m;
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

    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

    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

    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 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
Copyright © 2018 www.massapi.com. 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.