Package org.aspectj.weaver.patterns

Examples of org.aspectj.weaver.patterns.SimpleScope


    this.world = new BcelWorld(classLoader, IMessageHandler.THROW, null);
    this.world.setBehaveInJava5Way(true);
    PatternParser patternParser = new PatternParser(typePatternExpression);
    TypePattern typePattern = patternParser.parseTypePattern();
    typePattern.resolve(this.world);
    IScope scope = new SimpleScope(this.world, new FormalBinding[0]);
    this.typePattern = typePattern.resolveBindings(scope, Bindings.NONE, false, false);
  }
View Full Code Here


    FormalBinding[] formalBindings = new FormalBinding[formalParameters.length];
    for (int i = 0; i < formalBindings.length; i++) {
      formalBindings[i] = new FormalBinding(toUnresolvedType(formalParameters[i].getType()), formalParameters[i].getName(), i);
    }
    if (inScope == null) {
      SimpleScope ss = new SimpleScope(getWorld(), formalBindings);
      ss.setImportedPrefixes(new String[] { "java.lang.", "java.util." });
      return ss;
    } else {
      ResolvedType inType = getWorld().resolve(inScope.getName());
      ISourceContext sourceContext = new ISourceContext() {
        public ISourceLocation makeSourceLocation(IHasPosition position) {
View Full Code Here

    FormalBinding[] formalBindings = new FormalBinding[formalParameters.length];
    for (int i = 0; i < formalBindings.length; i++) {
      formalBindings[i] = new FormalBinding(toUnresolvedType(formalParameters[i].getType()), formalParameters[i].getName(), i);
    }
    if (inScope == null) {
      return new SimpleScope(getWorld(), formalBindings);
    } else {
      ResolvedType inType = getWorld().resolve(inScope.getName());
      ISourceContext sourceContext = new ISourceContext() {
        public ISourceLocation makeSourceLocation(IHasPosition position) {
          return new SourceLocation(new File(""), 0);
View Full Code Here

    this.world = new BcelWorld(classLoader, IMessageHandler.THROW, null);
    this.world.setBehaveInJava5Way(true);
    PatternParser patternParser = new PatternParser(typePatternExpression);
    TypePattern typePattern = patternParser.parseTypePattern();
    typePattern.resolve(this.world);
    IScope scope = new SimpleScope(this.world, new FormalBinding[0]);
    this.typePattern = typePattern.resolveBindings(scope, Bindings.NONE, false, false);
  }
View Full Code Here

        for (int j = 0, len = ids.length; j < len; j++) {
            bindings[j] = new FormalBinding(types[j], ids[j], j, 0, 0, "fromString");
        }

        Pointcut p =
          pointcut.resolve(new SimpleScope(this, bindings));

        return new BcelAdvice(kind, p, m, extraFlag, 0, 0, null, null);
    }
View Full Code Here

      FormalBinding[] formalBindings = new FormalBinding[formalParameters.length];
      for (int i = 0; i < formalBindings.length; i++) {
      formalBindings[i] = new FormalBinding(UnresolvedType.forName(formalParameters[i].getType().getName()),formalParameters[i].getName(),i);     
    }
      if (inScope == null) {
        return new SimpleScope(getWorld(),formalBindings);
      } else {
        ResolvedType inType = getWorld().resolve(inScope.getName());
        ISourceContext sourceContext = new ISourceContext() {
          public ISourceLocation makeSourceLocation(IHasPosition position) {
            return new SourceLocation(new File(""),0);
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.patterns.SimpleScope

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.