org.antlr.test
Class TestHeteroAST

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.antlr.test.BaseTest
              extended by org.antlr.test.TestHeteroAST
All Implemented Interfaces:
junit.framework.Test

public class TestHeteroAST
extends BaseTest

Test hetero trees in parsers and tree parsers


Nested Class Summary
 
Nested classes/interfaces inherited from class org.antlr.test.BaseTest
BaseTest.StreamVacuum
 
Field Summary
protected  boolean debug
           
 
Fields inherited from class org.antlr.test.BaseTest
CLASSPATH, jikes, pathSep, stderr, tmpdir
 
Constructor Summary
TestHeteroAST()
           
 
Method Summary
 void testCopySemanticsWithHetero()
           
 void testRewriteRuleResults()
           
 void testRewriteString()
           
 void testRewriteStringRoot()
           
 void testRewriteToken()
           
 void testRewriteTokenRoot()
           
 void testRewriteTokenWithArgs()
           
 void testString()
           
 void testStringRoot()
           
 void testToken()
           
 void testTokenRoot()
           
 void testTokenRootWithListLabel()
           
 void testTokenWithLabel()
           
 void testTokenWithListLabel()
           
 void testTokenWithQualifiedType()
           
 void testTreeParserAutoHeteroAST()
           
 void testTreeParserRewriteFlatList()
           
 void testTreeParserRewriteImaginary()
           
 void testTreeParserRewriteImaginaryFromReal()
           
 void testTreeParserRewriteImaginaryRoot()
           
 void testTreeParserRewriteImaginaryWithArgs()
           
 void testTreeParserRewriteTree()
           
 
Methods inherited from class org.antlr.test.BaseTest
antlr, checkGrammarSemanticsError, checkGrammarSemanticsWarning, compile, eraseFiles, execLexer, execParser, execTreeParser, execTreeParser, getFirstLineOfException, mkdir, newTool, newTool, rawExecRecognizer, rawGenerateAndBuildRecognizer, realElements, realElements, setUp, writeFile, writeLexerTestFile, writeTemplateTestFile, writeTestFile, writeTreeAndTreeTestFile, writeTreeTestFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

protected boolean debug
Constructor Detail

TestHeteroAST

public TestHeteroAST()
Method Detail

testToken

public void testToken()
               throws java.lang.Exception
Throws:
java.lang.Exception

testTokenWithQualifiedType

public void testTokenWithQualifiedType()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testTokenWithLabel

public void testTokenWithLabel()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testTokenWithListLabel

public void testTokenWithListLabel()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testTokenRoot

public void testTokenRoot()
                   throws java.lang.Exception
Throws:
java.lang.Exception

testTokenRootWithListLabel

public void testTokenRootWithListLabel()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testString

public void testString()
                throws java.lang.Exception
Throws:
java.lang.Exception

testStringRoot

public void testStringRoot()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testRewriteToken

public void testRewriteToken()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testRewriteTokenWithArgs

public void testRewriteTokenWithArgs()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testRewriteTokenRoot

public void testRewriteTokenRoot()
                          throws java.lang.Exception
Throws:
java.lang.Exception

testRewriteString

public void testRewriteString()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testRewriteStringRoot

public void testRewriteStringRoot()
                           throws java.lang.Exception
Throws:
java.lang.Exception

testRewriteRuleResults

public void testRewriteRuleResults()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testCopySemanticsWithHetero

public void testCopySemanticsWithHetero()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserRewriteFlatList

public void testTreeParserRewriteFlatList()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserRewriteTree

public void testTreeParserRewriteTree()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserRewriteImaginary

public void testTreeParserRewriteImaginary()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserRewriteImaginaryWithArgs

public void testTreeParserRewriteImaginaryWithArgs()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserRewriteImaginaryRoot

public void testTreeParserRewriteImaginaryRoot()
                                        throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserRewriteImaginaryFromReal

public void testTreeParserRewriteImaginaryFromReal()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testTreeParserAutoHeteroAST

public void testTreeParserAutoHeteroAST()
                                 throws java.lang.Exception
Throws:
java.lang.Exception