Package noop.model

Examples of noop.model.Parameter


    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." +
        " Tools may choose to render this as infix",
        System.getProperty("user.name"), new Instant()));

    integerEquals = new Method("==");
    intClazz.addBlock(integerEquals);

    Parameter integerPlusArg = new Parameter("i");
    integerPlus.addParameter(integerPlusArg);

    controller.apply(new NewProjectOperation(noop));
    controller.apply(new NewEdgeOperation(printMethod, TYPEOF, voidClazz));
    controller.apply(new NewEdgeOperation(printArg, TYPEOF, stringClazz));
View Full Code Here

TOP

Related Classes of noop.model.Parameter

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.