Package org.aspectj.asm

Examples of org.aspectj.asm.IRelationship.addTarget()


        return;
      }

      IRelationshipMap mapper = model.getRelationshipMap();
      IRelationship foreward = mapper.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATES, false, true);
      foreward.addTarget(targetHandle);

      IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATED_BY, false, true);
      back.addTarget(sourceHandle);
    } catch (Throwable t) { // I'm worried about that code above, this will
      // make sure we don't explode if it plays up
View Full Code Here


      IRelationshipMap mapper = model.getRelationshipMap();
      IRelationship foreward = mapper.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATES, false, true);
      foreward.addTarget(targetHandle);

      IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATED_BY, false, true);
      back.addTarget(sourceHandle);
    } catch (Throwable t) { // I'm worried about that code above, this will
      // make sure we don't explode if it plays up
      t.printStackTrace(); // I know I know .. but I don't want to lose
      // it!
    }
View Full Code Here

    // IRelationship back = relmap
    // .get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATION_REMOVED_BY, false, true);
    // back.addTarget(sourceHandle);
    // } else {
    IRelationship foreward = relmap.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATES, false, true);
    foreward.addTarget(targetHandle);
    IRelationship back = relmap.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATED_BY, false, true);
    back.addTarget(sourceHandle);
    // }
  }
View Full Code Here

    // back.addTarget(sourceHandle);
    // } else {
    IRelationship foreward = relmap.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATES, false, true);
    foreward.addTarget(targetHandle);
    IRelationship back = relmap.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATED_BY, false, true);
    back.addTarget(sourceHandle);
    // }
  }

}
View Full Code Here

      return;
    }

    IRelationshipMap relmap = model.getRelationshipMap();
    IRelationship foreward = relmap.get(sourceHandle, IRelationship.Kind.DECLARE, MATCHED_BY, false, true);
    foreward.addTarget(targetHandle);

    IRelationship back = relmap.get(targetHandle, IRelationship.Kind.DECLARE, MATCHES_DECLARE, false, true);
    if (back != null && back.getTargets() != null) {
      back.addTarget(sourceHandle);
    }
View Full Code Here

    IRelationship foreward = relmap.get(sourceHandle, IRelationship.Kind.DECLARE, MATCHED_BY, false, true);
    foreward.addTarget(targetHandle);

    IRelationship back = relmap.get(targetHandle, IRelationship.Kind.DECLARE, MATCHES_DECLARE, false, true);
    if (back != null && back.getTargets() != null) {
      back.addTarget(sourceHandle);
    }
    if (sourceNode.getSourceLocation() != null) {
      model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile());
    }
  }
View Full Code Here

        return;
      }
      IRelationshipMap mapper = model.getRelationshipMap();
      IRelationship foreward = mapper.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, INTER_TYPE_DECLARES, false,
          true);
      foreward.addTarget(targetHandle);

      IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, INTER_TYPE_DECLARED_BY, false,
          true);
      back.addTarget(sourceHandle);
      if (sourceNode != null && sourceNode.getSourceLocation() != null) {
View Full Code Here

          true);
      foreward.addTarget(targetHandle);

      IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, INTER_TYPE_DECLARED_BY, false,
          true);
      back.addTarget(sourceHandle);
      if (sourceNode != null && sourceNode.getSourceLocation() != null) {
        // May have been a bug in the compiled aspect - so it didn't get put in the model
        model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile());
      }
    }
View Full Code Here

    // if (sourceNode.getSourceLocation() != null) {
    // model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile());
    // }
    // } else {
    IRelationship foreward = mapper.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATES, false, true);
    foreward.addTarget(targetHandle);

    IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATED_BY, false, true);
    back.addTarget(sourceHandle);
    if (sourceNode.getSourceLocation() != null) {
      model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile());
View Full Code Here

    // } else {
    IRelationship foreward = mapper.get(sourceHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATES, false, true);
    foreward.addTarget(targetHandle);

    IRelationship back = mapper.get(targetHandle, IRelationship.Kind.DECLARE_INTER_TYPE, ANNOTATED_BY, false, true);
    back.addTarget(sourceHandle);
    if (sourceNode.getSourceLocation() != null) {
      model.addAspectInEffectThisBuild(sourceNode.getSourceLocation().getSourceFile());
    }
    // }
  }
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.