Examples of Shadow


Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(callerType);
    return sm;
  }

  public ShadowMatch matchesConstructorCall(Constructor aConstructor, Member withinCode) {
    Shadow s = ReflectionShadow.makeCallShadow(world, aConstructor, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aConstructor);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
  }

  public ShadowMatch matchesHandler(Class exceptionType, Class handlingType) {
    Shadow s = ReflectionShadow.makeHandlerShadow(world, exceptionType, handlingType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(null);
    sm.setWithinType(handlingType);
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(handlingType);
    return sm;
  }

  public ShadowMatch matchesHandler(Class exceptionType, Member withinCode) {
    Shadow s = ReflectionShadow.makeHandlerShadow(world, exceptionType, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
  }

  public ShadowMatch matchesFieldGet(Field aField, Class withinType) {
    Shadow s = ReflectionShadow.makeFieldGetShadow(world, aField, withinType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(null);
    sm.setWithinType(withinType);
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(withinType);
    return sm;
  }

  public ShadowMatch matchesFieldGet(Field aField, Member withinCode) {
    Shadow s = ReflectionShadow.makeFieldGetShadow(world, aField, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
  }

  public ShadowMatch matchesFieldSet(Field aField, Class withinType) {
    Shadow s = ReflectionShadow.makeFieldSetShadow(world, aField, withinType, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(null);
    sm.setWithinType(withinType);
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    sm.setWithinType(withinType);
    return sm;
  }

  public ShadowMatch matchesFieldSet(Field aField, Member withinCode) {
    Shadow s = ReflectionShadow.makeFieldSetShadow(world, aField, withinCode, this.matchContext);
    ShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aField);
    sm.setWithinCode(withinCode);
    sm.setWithinType(withinCode.getDeclaringClass());
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

    super(policy, options, problemFactory);
  }

  public void unhandledException(TypeBinding exceptionType, ASTNode location) {
    if (!factory.getWorld().getDeclareSoft().isEmpty()) {
      Shadow callSite = factory.makeShadow(location, referenceContext);
      Shadow enclosingExec = factory.makeShadow(referenceContext);
      // PR 72157 - calls to super / this within a constructor are not part of the cons join point.
      if ((callSite == null) && (enclosingExec.getKind() == Shadow.ConstructorExecution)
          && (location instanceof ExplicitConstructorCall)) {
        super.unhandledException(exceptionType, location);
        return;
      }
      // System.err.println("about to show error for unhandled exception: " + new String(exceptionType.sourceName()) +
View Full Code Here

Examples of org.aspectj.weaver.Shadow

  // sm.setWithinType(aMember.getDeclaringClass());
  // return sm;
  // }

  private ShadowMatch matchesExecution(ResolvedMember aMember) {
    Shadow s = StandardShadow.makeExecutionShadow(world, aMember, this.matchContext);
    StandardShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(aMember);
    sm.setWithinCode(null);
    sm.setWithinType((ResolvedType) aMember.getDeclaringType());
    return sm;
View Full Code Here

Examples of org.aspectj.weaver.Shadow

  // sm.setWithinType(aClass);
  // return sm;
  // }

  public ShadowMatch matchesStaticInitialization(ResolvedType aType) {
    Shadow s = StandardShadow.makeStaticInitializationShadow(world, aType, this.matchContext);
    StandardShadowMatchImpl sm = getShadowMatch(s);
    sm.setSubject(null);
    sm.setWithinCode(null);
    sm.setWithinType(aType);
    return sm;
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.