Package org.kite9.diagram.adl

Examples of org.kite9.diagram.adl.Key


    if (in instanceof SimpleNoun) {
      return ((SimpleNoun) in).getLabel();
    }

    throw new Kite9ProcessingException("Can't process this noun" + in);

  }
View Full Code Here


        }

        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
              "Was expecting a connected: " + de);
        }
      }
    };
  }
View Full Code Here

        DiagramElement de = ii.returnConnectionBody(c, to, to.getLabel());

        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
              "Was expecting a connected: " + de);
        }
      }
    };
  }
View Full Code Here

        DiagramElement de = ii.returnContext(c, to, border ? toUse
            : null, border, d);
        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
              "Was expecting a connected: " + de);
        }
      }
    };
  }
View Full Code Here

          out = ii.returnTextLine((Glyph) de, pb, text);
        } else if (de instanceof TextLine) {
          // add further information to the text line
          out = ii.extendTextLine((TextLine) de, pb, ", "+text);
        } else {
          throw new Kite9ProcessingException(
              "Text line can only be added to existing text lines or glyphs: "
                  + de);
        }
       
        ii.mapExisting(value, out);
View Full Code Here

      if (within instanceof Container) {
        return (Container) within;
      } else if (within instanceof Contained) {
        return ((Contained) within).getContainer();
      } else {
        throw new Kite9ProcessingException("Cannot find container for " + within);
      }
    } else {
      // object must exist outside context
      if (within instanceof Contained) {
        return ((Contained) within).getContainer();
      } else {
        throw new Kite9ProcessingException("Cannot find container for " + within);
      }
    }
  }
View Full Code Here

      if (t.getSort() == Type.OBJECT) {
        String className2 = t.getInternalName();
        addDependency(className, model, className2);
      }
    } catch (RuntimeException e) {
      throw new Kite9ProcessingException("Could not handle type: " + t.getDescriptor(), e);
    }
  }
View Full Code Here

  public void test_1_14_AnnotationReference() throws Exception {
    Set<AnnotationHandle> refs = pm.getAnnotationReferences(convertName(Refs.Referenced.class));
    Method m = Refs.class.getMethod("referencer");
    MethodHandle mh = new MethodHandle(m);
    Reference ref = m.getAnnotation(Reference.class);
    AnnotationHandle expected = new AnnotationHandle(ref, mh, "refs");
    Assert.assertTrue(refs.contains(expected));
  }
View Full Code Here

        setFieldName(arg0);
        if (arg1 instanceof Type) {
          Type referenced = (Type) arg1;
          String name = referenced.getClassName();
          Type annotationClass = Type.getType(desc);
          AnnotationHandle ah = new AnnotationHandle(field, handle, MemberHandle
              .convertClassName(annotationClass.getClassName()));
          model.addAnnotationReference(MemberHandle.convertClassName(name), ah);
          addDependency(handle.getDeclaringClass(), model, referenced);
        }
      }
View Full Code Here

      }

      public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        model.addClassAnnotation(convertAnnotationDescriptor(desc), className);
        addDependency(className, model, desc, false);
        return createAnnotationVisitor(model, new ClassHandle(className), desc);
      }

      public FieldVisitor visitField(int access, String name, String desc, String sign, Object value) {
        final FieldHandle mh = new FieldHandle(className, name);
        addDependency(className, model, desc, true);
View Full Code Here

TOP

Related Classes of org.kite9.diagram.adl.Key

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.