Examples of AnnotatedNounPartImpl


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

            throw new Kite9ProcessingException(
                "Could not handle collection with more than one type argument: " + to);
          } else {
            NounPart np = generateNoun(args[0], a);
            String label = a.getObjectAlias(raw) + " of ";
            return new AnnotatedNounPartImpl(np, label);
          }
        }
      }

      throw new LogicException("Should not unravel with collection unraveller !" + to);
View Full Code Here

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

    public NounPart unravel(Type to, Aliaser a) {
      if (to instanceof GenericArrayType) {
        GenericArrayType gt = (GenericArrayType) to;
        Type raw = gt.getGenericComponentType();
        NounPart np = generateNoun(raw, a);
        return new AnnotatedNounPartImpl(np, "array of ");
      } else if ((to instanceof Class<?>) && (((Class<?>) to).isArray())) {
        NounPart np = generateNoun(((Class<?>) to).getComponentType(), a);
        return new AnnotatedNounPartImpl(np, "array of ");
      }

      throw new LogicException("Should not unravel with array unraveller !" + to);
    }
View Full Code Here

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

       
        Type key = args[0];
        Type value = args[1];
        List<NounPart> disambiguation = new ArrayList<NounPart>();
        if (key!=null) {
          disambiguation.add(new AnnotatedNounPartImpl(generateNoun(key, a),"from "));
          disambiguation.add(new AnnotatedNounPartImpl(generateNoun(value, a),"to "));
        }

        return new ProjectStaticSimpleNoun(raw, a, disambiguation);
    }
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.