Examples of Script


Examples of eas.simulation.spatial.sim2D.marbSimulation.translator.script.Script

         */
        // Falls nur Standardkodierung verwendet werden soll: (TODO!)
        if (params.getParValueBoolean("UseOnlyStandardDecoding")) {
            this.erzeugeAusStdSequenz(seq2, pruefen);
        } else {
            Script neuScript = trans2.translate(seq2);
            trans2.getScriptInterpreter().generateAutomaton(this, neuScript);
        }
    }
View Full Code Here

Examples of flex2.compiler.mxml.rep.Script

            if (node.getSourceFile() == null)
            {
                CDATANode cdata = (CDATANode) node.getChildAt(0);
                if (cdata != null)
                {
                    Script script = new Script(cdata.image, cdata.beginLine, cdata.endLine);
                    script.setEmbeddedScript(true);
                    docInfo.addScript(script);
                }
            }
            else
            {
                String source = (String) node.getAttributeValue("source");
                if (source != null)
                {
                    Script script = new Script("include \"" + source + "\";", node.beginLine);
                    docInfo.addScript(script);
                }
            }
        }
View Full Code Here

Examples of fmg.fmg8.endlAutomat.script.Script

       
        Translator trans = new Translator(
                transCode,
                new ScriptInterpreter(params, SonstMeth.MODUS_TRANSLATOR),
                params);
        Script s = trans.translate(new EndlicherAutomat().bereinige(seqCode));
        ScriptInterpreter sInt = new ScriptInterpreter(params, SonstMeth.MODUS_TRANSLATOR);
        EndlicherAutomat ea = new EndlicherAutomat();
        sInt.generateAutomaton(ea, s);
//        System.out.println(ea.erzeugeSequenz().size());
        System.exit(0);
View Full Code Here

Examples of gri.gridp.modules.Script

    elem.addContent(new CDATA(script.getText()));

  }

  public Script readScript(Element element) {
    Script s = new Script();
    ScriptEnvironment e = s.getEnvironment();

    Attribute a;
    //os:
    a = element.getAttribute("os");
    if (a != null)
      e.setOperatingSystem(a.getValue());

    //shell:
    a = element.getAttribute("shell");
    if (a != null)
      e.setShell(a.getValue());

    //script:
    s.setText(element.getValue());

    return s;
  }
View Full Code Here

Examples of groovy.lang.Script

    public void testCompileScriptToDir() throws Exception {
        scriptCompilationHandler.compileToDir(scriptSource, classLoader, scriptCacheDir, null, expectedScriptClass);

        checkScriptClassesInCache();

        Script script = scriptCompilationHandler.loadFromDir(scriptSource, classLoader, scriptCacheDir,
                expectedScriptClass).newInstance();
        evaluateScript(script);
    }
View Full Code Here

Examples of groovy.lang.Script

        mock.startElement("", "module", "module", attrs);
        mock.endElement("", "module", "module");

        replayControls();

        Script script = new GroovyShell().parse("processor.module(id:'basic', version:'1.0.0')");

        runScript(script, mock);
    }
View Full Code Here

Examples of groovy.lang.Script

        parser.initialize(resource, getClassResolver());

        GroovyCodeSource source = new GroovyCodeSource(resource.getResourceURL());

        Script script = new GroovyShell().parse(source);

        try
        {
            runScript(script, parser);
View Full Code Here

Examples of groovy.lang.Script

        DispatchContext dctx = dispatcher.getLocalContext(localName);
        gContext.put("dctx", dctx);
        gContext.put("dispatcher", dctx.getDispatcher());
        gContext.put("delegator", dispatcher.getDelegator());
        try {
            Script script = InvokerHelper.createScript(GroovyUtil.getScriptClassFromLocation(this.getLocation(modelService)), GroovyUtil.getBinding(gContext));
            Object resultObj = null;
            if (UtilValidate.isEmpty(modelService.invoke)) {
                resultObj = script.run();
            } else {
                resultObj = script.invokeMethod(modelService.invoke, EMPTY_ARGS);
            }
            if (resultObj != null && resultObj instanceof Map<?, ?>) {
                return cast(resultObj);
            } else if (gContext.get("result") != null && gContext.get("result") instanceof Map<?, ?>) {
                return cast(gContext.get("result"));
View Full Code Here

Examples of groovy.lang.Script

            DescriptorParser contentHandler) throws SAXException, IOException
    {
        HiveMindBuilder builder = new HiveMindBuilder(contentHandler);

        GroovyCodeSource source = new GroovyCodeSource(resource.getResourceURL());
        Script script;

        try
        {
            script = getGroovyShell().parse(source);
        }
        catch (Exception e)
        {
            throw new ApplicationRuntimeException(e);
        }

        Binding processorBinding = new Binding();
        processorBinding.setVariable("processor", builder);

        script.setBinding(processorBinding);

        script.run();

        return contentHandler.getModuleDescriptor();
    }
View Full Code Here

Examples of groovy.lang.Script

        mock.startElement("", "module", "module", attrs);
        mock.endElement("", "module", "module");

        replayControls();

        Script script = new GroovyShell().parse("processor.module(id:'basic', version:'1.0.0')");

        runScript(script, mock);
    }
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.