Package org.kite9.diagram.builders.krmodel

Examples of org.kite9.diagram.builders.krmodel.Tie


      } catch (IllegalArgumentException e) {
      } catch (IllegalAccessException e) {
      } catch (InvocationTargetException e) {
      }
      if ((value!=null) && ((f == null) || (f.accept(method)))) {
        ties.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.FIELD,
            createNoun(value)));
      }
    }
  }
View Full Code Here


  List<Tie> ties2 = new ArrayList<Tie>();

  for (Tie t : ties) {
      Field m = getRepresented(t);
      if (f==null || f.accept(m)) {
    ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.HAS_TYPE, createNoun(m.getGenericType())));
      }
  }
  return new TypeBuilder(ties2, model, a);
}
View Full Code Here

    List<Tie> ties2 = new ArrayList<Tie>();

    for (Tie t : ties) {
        Method m = getRepresented(t);
        if (f==null || f.accept(m)) {
      ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.RETURNS, createNoun(m.getGenericReturnType())));
        }
    }
    return new TypeBuilder(ties2, model, a);
  }
View Full Code Here

    for (Tie t : ties) {
        Method m = getRepresented(t);
        NounPart subject = NounFactory.createNewSubjectNounPart(t);
      for (Type ty : m.getGenericParameterTypes()) {
          if (f==null || f.accept(ty)) {
        ties2.add(new Tie(subject, JavaRelationships.PARAMETER, createNoun(ty)));
          }
      }
    }
    return new TypeBuilder(ties2, model, a);
  }
View Full Code Here

        Method m = getRepresented(t);
      for (MemberHandle mh : model.getCalledBy(new MethodHandle(m))) {
          if (mh instanceof MethodHandle) {
        Method m2 = ((MethodHandle)mh).hydrate(cl);
        if ((f == null) || (f.accept(m2))) {
          ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.CALLED_BY, createNoun(m2)));
        }
          }
      }
    }
View Full Code Here

      for (MemberHandle mh : model.getCalledBy(new MethodHandle(m))) {
          if (mh instanceof MethodHandle) {
        Method m2 = ((MethodHandle)mh).hydrate(cl);
        Class<?> c2 = m2.getDeclaringClass();
        if ((f == null) || (f.accept(c2))) {
          ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.CALLED_BY, createNoun(c2)));
        }
          }
      }
    }
View Full Code Here

        Method m = getRepresented(t);
      for (MemberHandle mh : model.getCalls(new MethodHandle(m))) {
            if (mh instanceof MethodHandle) {
                Method m2 = ((MethodHandle)mh).hydrate(cl);
                if ((f == null) || (f.accept(m2))) {
                  ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.CALLS, createNoun(m2)));
                }
            }
      }
    }
View Full Code Here

      for (MemberHandle mh : model.getCalls(new MethodHandle(m))) {
            if (mh instanceof MethodHandle) {
                Method m2 = ((MethodHandle)mh).hydrate(cl);
                Class<?> dc = ((MethodHandle)mh).hydrateClass(cl);
                if ((f == null) || (f.accept(dc))) {
                  ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), new MethodCallRelationship(m2), createNoun(dc)));
                }
            }
      }
    }
View Full Code Here

    List<Tie> ties2 = new ArrayList<Tie>();
    for (Tie t : ties) {
        Method m = getRepresented(t);
      Class<?> c2 = m.getDeclaringClass();
      if ((f == null) || (f.accept(c2))) {
        ties2.add(new Tie(NounFactory.createNewSubjectNounPart(t), JavaRelationships.METHOD_OF, createNoun(c2)));
      }

    }

    return new ClassBuilder(ties2, model, a);
View Full Code Here

      Class<?> c = getRepresented(t);
      NounPart subject = NounFactory.createNewSubjectNounPart(t);
      if (model.withinModel(MemberHandle.convertClassName(c))) {
        for (Y y : ccs.contents(c)) {
          if ((y!=null) && ((f == null) || (f.accept(y)))) {
            out.add(new Tie(subject, r, createNoun(y)));
          }
        }

        if (traverse) {
          packContentInner2(subject, ccs.traverse(c), f, ccs, traverse, r, out);
View Full Code Here

TOP

Related Classes of org.kite9.diagram.builders.krmodel.Tie

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.