Package org.aspectj.weaver

Examples of org.aspectj.weaver.BCException


    assertGoodRange(r, body, from);
    if (r.getStart() == ih) {
      ranges.push(r);
    } else if (r.getEnd() == ih) {
      if (ranges.peek() != r) {
        throw new BCException("bad range inclusion in " + from);
      }
      ranges.pop();
    }
  }
View Full Code Here


    }
  }

  private static void assertRangeHandle(InstructionHandle ih, String from) {
    if (!Range.isRangeHandle(ih)) {
      throw new BCException("bad range handle " + ih + " in " + from);
    }
  }
View Full Code Here

        }
      }
    } else if (targeter instanceof Tag) {
      return;
    }
    throw new BCException(targeter + " doesn't target " + target + " in " + from);
  }
View Full Code Here

  private static Range getRangeAndAssertExactlyOne(InstructionHandle ih, String from) {
    Range ret = null;
    Iterator<InstructionTargeter> tIter = ih.getTargeters().iterator();
    if (!tIter.hasNext()) {
      throw new BCException("range handle with no range in " + from);
    }
    while (tIter.hasNext()) {
      InstructionTargeter ts = tIter.next();
      if (ts instanceof Range) {
        if (ret != null) {
          throw new BCException("range handle with multiple ranges in " + from);
        }
        ret = (Range) ts;
      }
    }
    if (ret == null) {
      throw new BCException("range handle with no range in " + from);
    }
    return ret;
  }
View Full Code Here

  public TypePattern getPerTypePointcut(Pointcut perClausePointcut) {
    Object o = perClausePointcut.accept(this, perClausePointcut);
    if (o instanceof TypePattern) {
      return (TypePattern) o;
    } else {
      throw new BCException("perClausePointcut visitor did not return a typepattern, it returned " + o
          + (o == null ? "" : " of type " + o.getClass()));
    }
  }
View Full Code Here

  // TODO these are currently unimplemented as I believe it resolves to a Binding form *always* and so they don't get
  // called

  @Override
  public FuzzyBoolean fastMatches(AnnotatedElement annotated) {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public UnresolvedType getAnnotationType() {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public Map getAnnotationValues() {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public ResolvedType getResolvedAnnotationType() {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations) {
    throw new BCException("unimplemented");
  }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.BCException

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.