public class AlgorithmCompilerTool extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_SEPARATOR |
| Constructor and Description |
|---|
AlgorithmCompilerTool() |
| Modifier and Type | Method and Description |
|---|---|
static AlgorithmTreeNode |
extractOperationNode(List<AlgorithmTreeNode> candidateNodes,
String instruction) |
static Map<String,AlgorithmTreeNode> |
getAllDeclaredLables(List<AlgorithmTreeNode> nodesToSearch) |
static StringValue |
getCellContent(List<AlgorithmTreeNode> candidateNodes,
String instruction) |
static AlgorithmTreeNode |
getLastExecutableOperation(List<AlgorithmTreeNode> nodes) |
static int |
getLinkedNodesGroupSize(List<AlgorithmTreeNode> nodesToProcess,
int firstNodeIndex) |
static List<AlgorithmTreeNode> |
getNestedInstructionsBlock(List<AlgorithmTreeNode> candidateNodes,
String instruction) |
static AlgorithmOperationSource |
getOperationSource(List<AlgorithmTreeNode> nodesToCompile,
String instruction) |
static boolean |
isOperationFieldInstruction(String instruction) |
public static final String FIELD_SEPARATOR
public static AlgorithmTreeNode extractOperationNode(List<AlgorithmTreeNode> candidateNodes, String instruction) throws SyntaxNodeException
candidateNodes - instruction - AlgorithmTreeNode that suits the given instruction nameSyntaxNodeExceptionpublic static Map<String,AlgorithmTreeNode> getAllDeclaredLables(List<AlgorithmTreeNode> nodesToSearch)
public static StringValue getCellContent(List<AlgorithmTreeNode> candidateNodes, String instruction) throws SyntaxNodeException
candidateNodes - instruction - SyntaxNodeExceptionpublic static AlgorithmTreeNode getLastExecutableOperation(List<AlgorithmTreeNode> nodes)
nodes - public static int getLinkedNodesGroupSize(List<AlgorithmTreeNode> nodesToProcess, int firstNodeIndex)
nodesToProcess - firstNodeIndex - public static List<AlgorithmTreeNode> getNestedInstructionsBlock(List<AlgorithmTreeNode> candidateNodes, String instruction) throws SyntaxNodeException
candidateNodes - conversionStep - SyntaxNodeExceptionpublic static AlgorithmOperationSource getOperationSource(List<AlgorithmTreeNode> nodesToCompile, String instruction) throws SyntaxNodeException
nodesToCompile - instruction - SyntaxNodeExceptionpublic static boolean isOperationFieldInstruction(String instruction)
instruction - Copyright © 2004–2019 OpenL Tablets. All rights reserved.