public class ASTPreprocessor extends Object
| Constructor and Description |
|---|
ASTPreprocessor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addBlockToBranches(XMLNode block)
Adds a block to all branch statement types (e.g.
|
static void |
detectIfElseBranches(XMLNode ifstatement)
Detects if/else if/else statements and puts them all under the same branch block.
|
static void |
preprocessBranches(XMLDocument ast)
Preprocesses the branches of an AST by first adding a block to all branches (e.g.
|
public static void preprocessBranches(XMLDocument ast)
ast - the AST to be preprocessed in XML format.public static void addBlockToBranches(XMLNode block)
block - the block of a method.public static void detectIfElseBranches(XMLNode ifstatement)
ifstatement - an if statement of a method block.Copyright © 2017. All rights reserved.