Public Member Functions | |
boolean | testDefaultCreate () |
boolean | testSpecificHomoCreate () |
boolean | testDynamicHeteroCreate () |
boolean | testNodeDup () |
boolean | testHeteroTreeDup () |
Static Public Member Functions | |
static void | main (String[] args) |
static void | error (String test) |
static void | success (String test) |
Protected Member Functions | |
boolean | checkNode (AST t, Class c, int tokenType) |
boolean | equalsNodeTypesList (AST self, AST t) |
Test the new heterogeneous token type to tree node mapping stuff. I'm not using jUnit because I don't want the dependency on that package for the moment.
boolean TestASTFactory.checkNode | ( | AST | t, | |
Class | c, | |||
int | tokenType | |||
) | [protected] |
References antlr.collections.AST.getType().
Referenced by testDefaultCreate(), testDynamicHeteroCreate(), testNodeDup(), and testSpecificHomoCreate().
Is t an exact structural match of this tree with the same node types? 'self' is considered the start of a sibling list.
References antlr.collections.AST.getFirstChild(), and antlr.collections.AST.getNextSibling().
Referenced by testHeteroTreeDup().
static void TestASTFactory.error | ( | String | test | ) | [static] |
Referenced by main().
static void TestASTFactory.main | ( | String[] | args | ) | [static] |
static void TestASTFactory.success | ( | String | test | ) | [static] |
Referenced by main().
boolean TestASTFactory.testDefaultCreate | ( | ) |
References checkNode(), and antlr.ASTFactory.create().
Referenced by main().
boolean TestASTFactory.testDynamicHeteroCreate | ( | ) |
References checkNode(), antlr.ASTFactory.create(), and antlr.ASTFactory.setTokenTypeASTNodeType().
Referenced by main().
boolean TestASTFactory.testHeteroTreeDup | ( | ) |
References antlr.collections.AST.addChild(), antlr.ASTFactory.create(), antlr.ASTFactory.dupList(), antlr.collections.AST.equalsList(), equalsNodeTypesList(), and antlr.ASTFactory.make().
Referenced by main().
boolean TestASTFactory.testNodeDup | ( | ) |
References checkNode(), antlr.ASTFactory.create(), antlr.ASTFactory.dup(), and antlr.collections.AST.equals().
Referenced by main().
boolean TestASTFactory.testSpecificHomoCreate | ( | ) |
References checkNode(), antlr.ASTFactory.create(), and antlr.ASTFactory.setASTNodeType().
Referenced by main().