Package org.aspectj.weaver

Examples of org.aspectj.weaver.BindingScope


        // struct.ajAttributes.add(new AjAttribute.WeaverVersionInfo());
        AjAttribute.Aspect aspectAttribute = new AjAttribute.Aspect(perClause);
        struct.ajAttributes.add(aspectAttribute);
        FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
        final IScope binding;
        binding = new BindingScope(struct.enclosingType, struct.context, bindings);

        // // we can't resolve here since the perclause typically refers
        // to pointcuts
        // // defined in the aspect that we haven't told the
        // BcelObjectType about yet.
View Full Code Here


        ResolvedType fieldType = UnresolvedType.forSignature(struct.field.getSignature()).resolve(
            struct.enclosingType.getWorld());
        if (fieldType.isInterface()) {
          TypePattern parent = parseTypePattern(fieldType.getName(), struct);
          FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
          IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);
          // first add the declare implements like
          List<TypePattern> parents = new ArrayList<TypePattern>(1);
          parents.add(parent);
          DeclareParents dp = new DeclareParents(typePattern, parents, false);
          dp.resolve(binding); // resolves the parent and child parts
View Full Code Here

      return false;
    }

    // Create the declare parents that will add the interfaces to matching targets
    FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
    IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);
    // how do we mark this as a decp due to decmixin?
    DeclareParents dp = new DeclareParentsMixin(targetTypePattern, newParents);
    dp.resolve(binding);
    targetTypePattern = dp.getChild();
View Full Code Here

        try {
          bindings = extractBindings(struct);
        } catch (UnreadableDebugInfoException unreadableDebugInfoException) {
          return false;
        }
        IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);

        // joinpoint, staticJoinpoint binding
        int extraArgument = extractExtraArgument(struct.method);

        Pointcut pc = null;
View Full Code Here

        try {
          bindings = extractBindings(struct);
        } catch (UnreadableDebugInfoException unreadableDebugInfoException) {
          return false;
        }
        IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);

        // joinpoint, staticJoinpoint binding
        int extraArgument = extractExtraArgument(struct.method);

        Pointcut pc = null;
View Full Code Here

      try {
        bindings = (returned == null ? extractBindings(struct) : extractBindings(struct, returned));
      } catch (UnreadableDebugInfoException unreadableDebugInfoException) {
        return false;
      }
      IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);

      // joinpoint, staticJoinpoint binding
      int extraArgument = extractExtraArgument(struct.method);

      // return binding
View Full Code Here

      try {
        bindings = (thrownFormal == null ? extractBindings(struct) : extractBindings(struct, thrownFormal));
      } catch (UnreadableDebugInfoException unreadableDebugInfoException) {
        return false;
      }
      IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);

      // joinpoint, staticJoinpoint binding
      int extraArgument = extractExtraArgument(struct.method);

      // return binding
View Full Code Here

        try {
          bindings = extractBindings(struct);
        } catch (UnreadableDebugInfoException unreadableDebugInfoException) {
          return false;
        }
        IScope binding = new BindingScope(struct.enclosingType, struct.context, bindings);

        // joinpoint, staticJoinpoint binding
        int extraArgument = extractExtraArgument(struct.method);

        Pointcut pc = null;
View Full Code Here

    final IScope binding;
    try {
      if (struct.method.isAbstract()) {
        binding = null;
      } else {
        binding = new BindingScope(struct.enclosingType, struct.context, extractBindings(struct));
      }
    } catch (UnreadableDebugInfoException e) {
      return false;
    }
View Full Code Here

        // struct.ajAttributes.add(new AjAttribute.WeaverVersionInfo());
        AjAttribute.Aspect aspectAttribute = new AjAttribute.Aspect(perClause);
        struct.ajAttributes.add(aspectAttribute);
        FormalBinding[] bindings = new org.aspectj.weaver.patterns.FormalBinding[0];
        final IScope binding;
        binding = new BindingScope(struct.enclosingType, struct.context, bindings);

        // // we can't resolve here since the perclause typically refers
        // to pointcuts
        // // defined in the aspect that we haven't told the
        // BcelObjectType about yet.
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.BindingScope

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.