public class PlatformAST extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PlatformAST.Node |
Constructor and Description |
---|
PlatformAST() |
Modifier and Type | Method and Description |
---|---|
static PlatformAST.Node |
assembleTree(Stack treeStack) |
static PlatformAST.Node |
getTree(ArrayList filterList) |
static Stack |
getTreeStack(Stack postFixStack) |
static void |
inOrder(PlatformAST.Node root) |
static Stack |
invertStack(Stack postFixStack) |
static void |
main(String[] args) |
static void |
printInOrder(PlatformAST.Node node,
int level) |
static void |
testExpression(String filter) |
static ArrayList |
toFilterList(PlatformAST.Node tree) |
static String |
toString(PlatformAST.Node n) |
public static PlatformAST.Node assembleTree(Stack treeStack)
public static void printInOrder(PlatformAST.Node node, int level)
public static void inOrder(PlatformAST.Node root)
public static String toString(PlatformAST.Node n)
public static PlatformAST.Node getTree(ArrayList filterList) throws Exception, PlatformException
Exception
PlatformException
public static ArrayList toFilterList(PlatformAST.Node tree) throws Exception
Exception
public static void main(String[] args)
public static void testExpression(String filter)