Package org.aspectj.weaver

Examples of org.aspectj.weaver.BoundedReferenceType$ReferenceTypeReferenceTypeDelegate


      ReferenceBinding baseTypeBinding = lookupBinding(typeX.getBaseName());
      RawTypeBinding rtb = lookupEnvironment.createRawType(baseTypeBinding,baseTypeBinding.enclosingType());
      return rtb;
    } else if (typeX.isGenericWildcard()) {
        // translate from boundedreferencetype to WildcardBinding
      BoundedReferenceType brt = (BoundedReferenceType)typeX;
      // Work out 'kind' for the WildcardBinding
      int boundkind = Wildcard.UNBOUND;
      TypeBinding bound = null;
      if (brt.isExtends()) {
        boundkind = Wildcard.EXTENDS;
        bound = makeTypeBinding(brt.getUpperBound());
      } else if (brt.isSuper()) {
        boundkind = Wildcard.SUPER;
        bound = makeTypeBinding(brt.getLowerBound());
      }
      TypeBinding[] otherBounds = null;
      if (brt.getAdditionalBounds()!=null && brt.getAdditionalBounds().length!=0) otherBounds = makeTypeBindings(brt.getAdditionalBounds());
      WildcardBinding wb = lookupEnvironment.createWildcard(baseTypeForParameterizedType,indexOfTypeParameterBeingConverted,bound,otherBounds,boundkind);
      return wb;
    } else {
      return lookupBinding(typeX.getName());
    }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.BoundedReferenceType$ReferenceTypeReferenceTypeDelegate

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.