Package org.aspectj.weaver

Examples of org.aspectj.weaver.ReferenceType


      ResolvedType type = null;
      if (upperBound != null) {
        if (upperBound.isIncludeSubtypes()) {
          canBeExact = false;
        } else {
          ReferenceType upper = (ReferenceType) upperBound.getExactType().resolve(scope.getWorld());
          type = new BoundedReferenceType(upper,true,scope.getWorld());
        }
      } else {
        if (lowerBound.isIncludeSubtypes()) {
          canBeExact = false;
        } else {
          ReferenceType lower = (ReferenceType) lowerBound.getExactType().resolve(scope.getWorld());
          type = new BoundedReferenceType(lower,false,scope.getWorld());
        }
      }
      if (canBeExact) {
        // might have changed if we find out include subtypes is set on one of the bounds...
View Full Code Here


        simpleTx = UnresolvedType.forName(getName(binding));
      }
    }else {
      simpleTx  = UnresolvedType.forName(getName(binding));
    }
    ReferenceType name  = getWorld().lookupOrCreateName(simpleTx);
    EclipseSourceType t = new EclipseSourceType(name, this, binding, decl, unit);
   
    // For generics, go a bit further - build a typex for the generic type
    // give it the same delegate and link it to the raw type
    if (binding.isGenericType()) {
      UnresolvedType complexTx = fromBinding(binding); // fully aware of any generics info
      ResolvedType cName = world.resolve(complexTx,true);
      ReferenceType complexName = null;
      if (!cName.isMissing()) {
        complexName = (ReferenceType) cName;
        complexName = (ReferenceType) complexName.getGenericType();
        if (complexName == null) complexName = new ReferenceType(complexTx,world);
      } else {
        complexName = new ReferenceType(complexTx,world);
      }
      name.setGenericType(complexName);
      complexName.setDelegate(t);
      complexName.setSourceContext(t.getResolvedTypeX().getSourceContext());
    }
       
    name.setDelegate(t);
    if (decl instanceof AspectDeclaration) {
      ((AspectDeclaration)decl).typeX = name;
View Full Code Here

                }
            }
        }

    if (hasPointcuts || dec instanceof AspectDeclaration) {
          ReferenceType name = (ReferenceType)factory.fromEclipse(sourceType);
          EclipseSourceType eclipseSourceType = (EclipseSourceType)name.getDelegate();
          eclipseSourceType.checkPointcutDeclarations();
    }
   
        ReferenceBinding[] memberTypes = sourceType.memberTypes;
        for (int i = 0, length = memberTypes.length; i < length; i++) {
View Full Code Here

    ContextToken tok = CompilationAndWeavingContext.enteringPhase(CompilationAndWeavingContext.PROCESSING_DECLARE_ANNOTATIONS, sourceType.sourceName);
 
    // Get the annotation specified in the declare
    UnresolvedType aspectType = decA.getAspect();
    if (aspectType instanceof ReferenceType) {
      ReferenceType rt = (ReferenceType) aspectType;
      if (rt.isParameterizedType() || rt.isRawType()) {
        aspectType = rt.getGenericType();
      }
    }
    TypeBinding tb = factory.makeTypeBinding(aspectType);
   
   
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.ReferenceType

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.