Examples of Clazz


Examples of com.google.singletondetector.Clazz

    detector =
        new SingletonDetector(root, path, flags,
            getAsmStyleClassName(SingletonOne.class),
            getAsmStyleClassName(SingletonUserOne.class));

    Clazz singletonOne =
        detector.getClass(getAsmStyleClassName(SingletonOne.class));
    Clazz singletonUserOne =
        detector.getClass(getAsmStyleClassName(SingletonUserOne.class));
    assertFalse(singletonOne.uses(singletonUserOne));
    assertTrue(singletonUserOne.uses(singletonOne));
  }
View Full Code Here

Examples of com.google.singletondetector.Clazz

    detector =
        new SingletonDetector(root, path, flags,
            getAsmStyleClassName(SingletonOne.class),
            getAsmStyleClassName(SingletonUserTwo.class));

    Clazz singletonOne =
        detector.getClass(getAsmStyleClassName(SingletonOne.class));
    Clazz singletonUserTwo =
        detector.getClass(getAsmStyleClassName(SingletonUserTwo.class));
    assertTrue(singletonUserTwo.uses(singletonOne));
  }
View Full Code Here

Examples of com.google.singletondetector.Clazz

  public void testIsHingletonOnANonHingleton() {
    detector =
        new SingletonDetector(root, path,
            getAsmStyleClassName(NotASingletonOne.class));
    Clazz cl = detector.getClass(getAsmStyleClassName(NotASingletonOne.class));
    assertFalse(cl.isHingleton());
  }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Clazz

   
    KalendarEvent calEvent = new KalendarEvent(event.getUid().getValue(), subject, start, end);
    calEvent.setAllDayEvent(isAllDay);
   
    // classification
    Clazz classification = event.getClassification();
    if (classification != null) {
      String sClass = classification.getValue();
      int iClassification = KalendarEvent.CLASS_PRIVATE;
      if (sClass.equals(ICAL_CLASS_PRIVATE.getValue())) iClassification = KalendarEvent.CLASS_PRIVATE;
      else if (sClass.equals(ICAL_CLASS_X_FREEBUSY.getValue())) iClassification = KalendarEvent.CLASS_X_FREEBUSY;
      else if (sClass.equals(ICAL_CLASS_PUBLIC.getValue())) iClassification = KalendarEvent.CLASS_PUBLIC;
      calEvent.setClassification(iClassification);
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Clazz

        }
        return null;
    }

    protected static String fromClazz(PropertyList propertyList) {
        Clazz iCalObj = (Clazz) propertyList.getProperty(Clazz.CLASS);
        if (iCalObj == null) {
            return null;
        }
        return "WES_".concat(iCalObj.getValue());
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Clazz

    protected static Clazz toClazz(String javaObj) {
        if (javaObj == null) {
            return null;
        }
        return new Clazz(javaObj.replace("WES_", ""));
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Clazz

        }
        return null;
    }

    protected static String fromClazz(PropertyList propertyList) {
        Clazz iCalObj = (Clazz) propertyList.getProperty(Clazz.CLASS);
        if (iCalObj == null) {
            return null;
        }
        return "WES_".concat(iCalObj.getValue());
    }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Clazz

    protected static Clazz toClazz(String javaObj) {
        if (javaObj == null) {
            return null;
        }
        return new Clazz(javaObj.replace("WES_", ""));
    }
View Full Code Here

Examples of noop.model.Clazz

  @Test
  public void shouldCreateVerticesForEveryElementUnderAProject() {
    Project p = new Project("example", "p", "MIT license");
    UUID uid = UUID.randomUUID();
    Library l = new Library(uid, "l");
    Clazz c = new Clazz("c");
    Method m = new Method("m");
    Library l2 = new Library(UUID.randomUUID(), "l2");

    p.addLibrary(l);
    p.addLibrary(l2);
    l.addClazz(c);
    c.addBlock(m);

    p.accept(new VertexCreatingVisitor());

    assertEquals(l, l.getElements().get(0));
    assertEquals(c, l.getElements().get(1));
View Full Code Here

Examples of noop.model.Clazz

    noop = new Project("Noop", "com.google", "Apache 2");

    lang = new Library(UUID.randomUUID(), "lang");
    noop.addLibrary(lang);

    stringClazz = new Clazz("String");
    lang.addClazz(stringClazz);

    voidClazz = new Clazz("Void");
    lang.addClazz(voidClazz);

    io = new Library(UUID.randomUUID(), "io");
    noop.addLibrary(io);

    consoleClazz = new Clazz("Console");
    io.addClazz(consoleClazz);

    printMethod = new Method("print");
    consoleClazz.addBlock(printMethod);

    Parameter printArg = new Parameter("s");
    printMethod.addParameter(printArg);

    booleanClazz = new Clazz("Boolean");
    lang.addClazz(booleanClazz);

    intClazz = new Clazz("Integer");
    lang.addClazz(intClazz);

    integerPlus = new Method("+");
    intClazz.addBlock(integerPlus);
    intClazz.addComment(new Comment("Elements may have symbols in their names." +
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.