Package org.aspectj.weaver

Examples of org.aspectj.weaver.UnresolvedType.resolve()


      // return type for the specific declaration at the shadow. (FastCar Sub.getCar())
      // XXX Put out another XLINT in this case?
      return;
    }
    // PR60015 - Don't report the warning if the declaring type is object and 'this' is an interface
    if (exactDeclaringType.resolve(world).isInterface() && shadowDeclaringType.equals(world.resolve("java.lang.Object"))) {
      return;
    }

    SignaturePattern nonConfusingPattern =
      new SignaturePattern(
View Full Code Here


      if (signature.getDeclaringType() != null) {
      World world = scope.getWorld();
      UnresolvedType exactType = signature.getDeclaringType().getExactType();
      if (signature.getKind() == Member.CONSTRUCTOR &&
        !ResolvedType.isMissing(exactType) &&
        exactType.resolve(world).isInterface() &&
        !signature.getDeclaringType().isIncludeSubtypes()) {
          world.getLint().noInterfaceCtorJoinpoint.signal(exactType.toString(), getSourceLocation());
        }
      }
    }
View Full Code Here

    }

    if (alwaysMatches && (annVar == null)) {//change check to verify if its the 'generic' annVar that is being used
        return Literal.TRUE;
    } else {
          ResolvedType rType = annotationType.resolve(shadow.getIWorld());
          return Test.makeHasAnnotation(var,rType);
    }
  }

 
View Full Code Here

           
            if (resolvedMember != null && Modifier.isProtected(resolvedMember.getModifiers()) &&
              !samePackage(targetType.getPackageName(), getEnclosingType().getPackageName()) &&
        !resolvedMember.getName().equals("clone"))
            {
              if (!targetType.resolve(world).isAssignableFrom(getThisType().resolve(world))) {
                throw new BCException("bad bytecode");
              }
              targetType = getThisType();
            }
            parameterTypes = addType(BcelWorld.makeBcelType(targetType), parameterTypes);
View Full Code Here

          TypePattern tp = newParents[i];
          UnresolvedType tx = tp.getExactType();
          if (kindOfDP == null) {
            kindOfDP = "implements ";
            try {
              ResolvedType rtx = tx.resolve(((AjLookupEnvironment)declare.scope.environment()).factory.getWorld());
            if (!rtx.isInterface()) kindOfDP = "extends ";
            } catch (Throwable t) {
              // What can go wrong???? who knows!
            }
           
View Full Code Here

                        il.append(InstructionConstants.ACONST_NULL);
                  }
              }
            } else {
                UnresolvedType desiredTy = getBindingParameterTypes()[i];
                v.appendLoadAndConvert(il, fact, desiredTy.resolve(world));
            }
        }


        // ATAJ: for code style aspect, handles the extraFlag as usual ie not
View Full Code Here

        if (ut.isTypeVariableReference()) {
          continueCheck = false;
        }
       
        if (continueCheck && 
            !tvs[i].canBeBoundTo(ut.resolve(scope.getWorld()))) {
          // issue message that type parameter does not meet specification
          String parameterName = ut.getName();
          if (ut.isTypeVariableReference()) parameterName = ((TypeVariableReference)ut).getTypeVariable().getDisplayName();
          String msg =
            WeaverMessages.format(
View Full Code Here

  protected FuzzyBoolean matchInternal(Shadow shadow) {
    if (!couldMatch(shadow)) return FuzzyBoolean.NO;
    UnresolvedType typeToMatch = isThis ? shadow.getThisType() : shadow.getTargetType();
    //if (typeToMatch == ResolvedType.MISSING) return FuzzyBoolean.NO;
   
    return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC);//AVPT was DYNAMIC
  }

  public void write(DataOutputStream s) throws IOException {
    s.writeByte(Pointcut.THIS_OR_TARGET);
    s.writeBoolean(isThis);
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.