public class FlowGraphMutator
extends java.lang.Object
| Constructor and Description |
|---|
FlowGraphMutator() |
| Modifier and Type | Method and Description |
|---|---|
static FlowGraphFragment |
extendFlowGraph(FlowGraph existingFlowGraph,
java.lang.String newSourceCode,
java.lang.String sourceCodeIdentifier,
FlowGraphFragment previousExtension,
LoadNode extenderNode,
boolean asTimeOutEvent,
java.lang.String resultVariableName)
Extends the given flow graph.
|
static Function |
extendFlowGraphWithTopLevelFunction(java.util.List<java.lang.String> parameterNames,
java.lang.String source,
FlowGraph existingFlowgraph,
SourceLocation.SourceLocationMaker sourceLocationMaker)
Adds a top-level function to the current flowgraph.
|
static Function |
extendFlowGraphWithTopLevelFunction(java.util.List<java.lang.String> parameterNames,
java.net.URL sourceFile,
boolean isHostEnvironment,
FlowGraph existingFlowgraph,
SourceLocation.SourceLocationMaker sourceLocationMaker)
Adds a top-level function to the current flowgraph.
|
public static FlowGraphFragment extendFlowGraph(FlowGraph existingFlowGraph, java.lang.String newSourceCode, java.lang.String sourceCodeIdentifier, FlowGraphFragment previousExtension, LoadNode extenderNode, boolean asTimeOutEvent, java.lang.String resultVariableName)
existingFlowGraph - the existing flow graphnewSourceCode - new JavaScript codesourceCodeIdentifier - key to use for the new flow graph fragmentpreviousExtension - previous extension that should be replaced by this one, or null if noneextenderNode - node in the existing flow graph where the new fragment should be placedasTimeOutEvent - if true, add the code as a timeout/interval event handler; if false, add the code as ordinary embedded coderesultVariableName - variable name for the expression result, or null if not usedpublic static Function extendFlowGraphWithTopLevelFunction(java.util.List<java.lang.String> parameterNames, java.lang.String source, FlowGraph existingFlowgraph, SourceLocation.SourceLocationMaker sourceLocationMaker)
public static Function extendFlowGraphWithTopLevelFunction(java.util.List<java.lang.String> parameterNames, java.net.URL sourceFile, boolean isHostEnvironment, FlowGraph existingFlowgraph, SourceLocation.SourceLocationMaker sourceLocationMaker)
parameterNames - pararmeter names of the functionsourceFile - source code of the function bodyisHostEnvironment - true if the function is part of the host environmentexistingFlowgraph - flowgraph to extendCopyright © 2009-2019 Aarhus University