org.antlr.test
Class TestRewriteTemplates

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

public class TestRewriteTemplates
extends BaseTest


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
TestRewriteTemplates()
           
 
Method Summary
 void testAction()
           
 void testDelete()
           
 void testEmbeddedLiteralConstructor()
           
 void testIndirectTemplate()
           
 void testInlineTemplate()
           
 void testInlineTemplateInvokingLib()
           
 void testNamedTemplate()
           
 void testPredicatedAlts()
           
 void testReturnValueWithTemplate()
           
 void testRewriteRuleAndRewriteModeIgnoreActionsPredicates()
           
 void testRewriteRuleAndRewriteModeNotSimple()
           
 void testRewriteRuleAndRewriteModeOnSimpleElements()
           
 void testRewriteRuleAndRewriteModeRefRule()
           
 void testSingleNode()
           
 void testSingleNodeRewriteMode()
           
 void testTemplateRefToDynamicAttributes()
           
 void testTemplateReturn()
           
 
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

TestRewriteTemplates

public TestRewriteTemplates()
Method Detail

testDelete

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

testAction

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

testEmbeddedLiteralConstructor

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

testInlineTemplate

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

testNamedTemplate

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

testIndirectTemplate

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

testInlineTemplateInvokingLib

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

testPredicatedAlts

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

testTemplateReturn

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

testReturnValueWithTemplate

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

testTemplateRefToDynamicAttributes

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

testSingleNode

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

testSingleNodeRewriteMode

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

testRewriteRuleAndRewriteModeOnSimpleElements

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

testRewriteRuleAndRewriteModeIgnoreActionsPredicates

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

testRewriteRuleAndRewriteModeNotSimple

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

testRewriteRuleAndRewriteModeRefRule

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