Examples of queryAssociationsOfEntities()


Examples of org.evolizer.famix.model.utils.SnapshotAnalyzer.queryAssociationsOfEntities()

    protected double calculate() {
        double value = 0d;
        SnapshotAnalyzer snapshotAnalyzer = new SnapshotAnalyzer(getCurrentSession());
        List<AbstractFamixEntity> entities = new ArrayList<AbstractFamixEntity>();
        entities.add(getCurrentEntity());
        List<AbstractFamixGeneralization> generalizations = snapshotAnalyzer.queryAssociationsOfEntities(entities, AbstractFamixGeneralization.class, "to");
        value = generalizations.size();
        return value;
    }

    /**
 
View Full Code Here

Examples of org.evolizer.famix.model.utils.SnapshotAnalyzer.queryAssociationsOfEntities()

        double value = 0d;
        FamixClass famixClass = (FamixClass) getCurrentEntity();
        SnapshotAnalyzer snapshotAnalyzer = new SnapshotAnalyzer(getCurrentSession());
        List<FamixClass> superClasses = querySuperClasses();

        List<FamixInvocation> invocations = snapshotAnalyzer.queryAssociationsOfEntities(
                famixClass.getMethods(),
                FamixInvocation.class,
                "from"
        );
View Full Code Here

Examples of org.evolizer.famix.model.utils.SnapshotAnalyzer.queryAssociationsOfEntities()

    @Override
    protected double calculate() {
        double value = 0d;
        SnapshotAnalyzer snapshotAnalyzer = new SnapshotAnalyzer(getCurrentSession());
        List<AbstractFamixEntity> entities = snapshotAnalyzer.getDescendants(getCurrentEntity());
        List<FamixInvocation> invocations = snapshotAnalyzer.queryAssociationsOfEntities(entities, FamixInvocation.class, "from");
        value = invocations.size();

        return value;
    }
View Full Code Here

Examples of org.evolizer.famix.model.utils.SnapshotAnalyzer.queryAssociationsOfEntities()

  @Override
  protected double calculate() {
      double value = 0d;
      SnapshotAnalyzer snapshotAnalyzer = new SnapshotAnalyzer(getCurrentSession());
      List<AbstractFamixEntity> entities = snapshotAnalyzer.getDescendants(getCurrentEntity());
      List<FamixInvocation> invocations = snapshotAnalyzer.queryAssociationsOfEntities(entities, FamixInvocation.class, "to");
      value = invocations.size();

      return value;
  }
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.