Package com.fasterxml.classmate

Examples of com.fasterxml.classmate.ResolvedTypeWithMembers$AnnotationHandler


  private void collectAttributes() {
    // find transient field and method names
    findTransientFieldAndMethodNames();

    // use the class mate library to generic types
    ResolvedTypeWithMembers resolvedType = localBindingContext.resolveMemberTypes(
        localBindingContext.getResolvedType(
            clazz
        )
    );
    for ( HierarchicType hierarchicType : resolvedType.allTypesAndOverrides() ) {
      if ( hierarchicType.getType().getErasedType().equals( clazz ) ) {
        resolvedType = localBindingContext.resolveMemberTypes( hierarchicType.getType() );
        break;
      }
    }
View Full Code Here


  private void collectAttributes() {
    // find transient field and method names
    findTransientFieldAndMethodNames();

    // use the class mate library to generic types
    ResolvedTypeWithMembers resolvedType = localBindingContext.resolveMemberTypes(
        localBindingContext.getResolvedType(
            clazz
        )
    );
    for ( HierarchicType hierarchicType : resolvedType.allTypesAndOverrides() ) {
      if ( hierarchicType.getType().getErasedType().equals( clazz ) ) {
        resolvedType = localBindingContext.resolveMemberTypes( hierarchicType.getType() );
        break;
      }
    }
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
    );

    ResolvedMethod[] resolvedMethods = typeWithMembers.getMemberMethods();

    // The ClassMate doc says that overridden methods are flattened to one
    // resolved method. But that is the case only for methods without any
    // generic parameters.
    if ( resolvedMethods.length == 1 ) {
View Full Code Here

  private ResolvedMethod getResolvedMethod(final Method methodToResolve, Class<?> beanType) {
    ResolvedType enclosingType = typeResolver.resolve(beanType);
    MemberResolver resolver = new MemberResolver(typeResolver);
    resolver.setIncludeLangObject(false);
    ResolvedTypeWithMembers typeWithMembers = resolver.resolve(enclosingType, null, null);
    Iterable<ResolvedMethod> filtered = filter(newArrayList(typeWithMembers.getMemberMethods()),
            methodNamesAreSame(methodToResolve));
    return resolveToMethodWithMaxResolvedTypes(filtered, methodToResolve);
  }
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
    );

    ResolvedMethod[] resolvedMethods = typeWithMembers.getMemberMethods();

    // The ClassMate doc says that overridden methods are flattened to one
    // resolved method. But that is the case only for methods without any
    // generic parameters.
    if ( resolvedMethods.length == 1 ) {
View Full Code Here

    defaultAccessType = determineDefaultAccessType( classes );
    inheritanceType = determineInheritanceType( classes );

    ClassLoaderService classLoaderService = serviceRegistry.getService( ClassLoaderService.class );
    Class<?> clazz = classLoaderService.classForName( classes.get( classes.size() - 1 ).name().toString() );
    ResolvedTypeWithMembers resolvedMembers = ReflectionHelper.resolveMemberTypes( clazz );

    configuredClasses = new ArrayList<ConfiguredClass>();
    ConfiguredClass parent = null;
    for ( ClassInfo info : classes ) {
      ConfiguredClass configuredClass = new ConfiguredClass(
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
    );

    ResolvedMethod[] resolvedMethods = typeWithMembers.getMemberMethods();

    // The ClassMate doc says that overridden methods are flattened to one
    // resolved method. But that is the case only for methods without any
    // generic parameters.
    if ( resolvedMethods.length == 1 ) {
View Full Code Here

  /**
   * Find all attributes for this configured class and add them to the corresponding map
   */
  private void collectAttributes() {
    // use the class mate library to generic types
    ResolvedTypeWithMembers resolvedType = context.resolveMemberTypes( context.getResolvedType( clazz ) );
    for ( HierarchicType hierarchicType : resolvedType.allTypesAndOverrides() ) {
      if ( hierarchicType.getType().getErasedType().equals( clazz ) ) {
        resolvedType = context.resolveMemberTypes( hierarchicType.getType() );
        break;
      }
    }
View Full Code Here

  private void collectAttributes() {
    // find transient field and method names
    findTransientFieldAndMethodNames();

    // use the class mate library to generic types
    ResolvedTypeWithMembers resolvedType = context.resolveMemberTypes( context.getResolvedType( clazz ) );
    for ( HierarchicType hierarchicType : resolvedType.allTypesAndOverrides() ) {
      if ( hierarchicType.getType().getErasedType().equals( clazz ) ) {
        resolvedType = context.resolveMemberTypes( hierarchicType.getType() );
        break;
      }
    }
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
    );

    ResolvedMethod[] resolvedMethods = typeWithMembers.getMemberMethods();

    // The ClassMate doc says that overridden methods are flattened to one
    // resolved method. But that is the case only for methods without any
    // generic parameters.
    if ( resolvedMethods.length == 1 ) {
View Full Code Here

TOP

Related Classes of com.fasterxml.classmate.ResolvedTypeWithMembers$AnnotationHandler

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.