Public Member Functions | Static Public Member Functions | Protected Member Functions

TestASTFactory Class Reference

List of all members.

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)

Detailed Description

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.


Member Function Documentation

boolean TestASTFactory.checkNode ( AST  t,
Class  c,
int  tokenType 
) [protected]
boolean TestASTFactory.equalsNodeTypesList ( AST  self,
AST  t 
) [protected]

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 (  ) 
boolean TestASTFactory.testHeteroTreeDup (  ) 
boolean TestASTFactory.testNodeDup (  ) 
boolean TestASTFactory.testSpecificHomoCreate (  ) 

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties