Searched refs:testRuleName (Results 1 - 5 of 5) sorted by relevance

/external/antlr/antlr-3.4/gunit/src/main/resources/org/antlr/gunit/
H A Djunit.stg47 testTreeRuleMethod(methodName,testTreeRuleName,testRuleName,test,tokenType,expecting) ::= <<
50 Object retval = execTreeParser(<testTreeRuleName>, <testRuleName>, "<test.inputEscaped>", <test.isFile>);
58 testTreeRuleMethod2(methodName,testTreeRuleName,testRuleName,test,returnType,expecting) ::= <<
61 <returnType> retval = (<returnType>)execTreeParser(<testTreeRuleName>, <testRuleName>, "<test.inputEscaped>", <test.isFile>);
67 testRuleMethod(isLexicalRule,methodName,testRuleName,test,tokenType,expecting) ::= <<
70 Object retval = <if(isLexicalRule)>execLexer<else>execParser<endif>(<testRuleName>, <test.line>, "<test.inputEscaped>", <test.isFile>);
74 assertEquals("testing rule "+<testRuleName>, expecting, actual);
78 testRuleMethod2(methodName,testRuleName,test,returnType,expecting) ::= <<
81 <returnType> retval = (<returnType>)execParser(<testRuleName>, <test.line>, "<test.inputEscaped>", <test.isFile>);
83 assertTrue("testing rule "+<testRuleName>, <expectin
[all...]
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
H A DgUnitBaseTest.java64 public String execLexer(String testRuleName, int line, String testInput, boolean isFile) throws Exception { argument
92 Method ruleName = lexer.getMethod("m"+testRuleName, new Class[0]);
155 public Object execParser(String testRuleName, int line, String testInput, boolean isFile) throws Exception { argument
201 Method ruleName = parser.getMethod(testRuleName);
218 if ( ruleReturn.getClass().toString().indexOf(testRuleName+"_return")>0 ) {
220 Class _return = Class.forName(parserPath+"$"+testRuleName+"_return");
302 public Object execTreeParser(String testTreeRuleName, String testRuleName, String testInput, boolean isFile) throws Exception { argument
348 Method ruleName = parser.getMethod(testRuleName);
362 Class _return = Class.forName(parserPath+"$"+testRuleName+"_return");
H A DJUnitCodeGen.java200 testRuleMethodST.setAttribute("testRuleName", '"'+ts.getRuleName()+'"');
206 String testRuleName;
208 if ( ts.isLexicalRule() ) testRuleName = ts.getLexicalRuleName();
209 else testRuleName = ts.getRuleName();
213 testRuleMethodST.setAttribute("methodName", "test"+changeFirstCapital(testRuleName)+i);
214 testRuleMethodST.setAttribute("testRuleName", '"'+testRuleName+'"');
252 testRuleMethodST.setAttribute("testRuleName", '"'+ts.getRuleName()+'"');
263 testRuleMethodST.setAttribute("testRuleName", '"'+ts.getRuleName()+'"');
H A DgUnitExecutor.java230 protected gUnitTestResult runLexer(String lexerName, String testRuleName, gUnitTestInput testInput) throws Exception { argument
246 Method ruleName = lexer.getMethod("m"+testRuleName, new Class[0]);
306 protected gUnitTestResult runParser(String parserName, String lexerName, String testRuleName, gUnitTestInput testInput) throws Exception { argument
339 Method ruleName = parser.getMethod(testRuleName);
356 if ( ruleReturn.getClass().toString().indexOf(testRuleName+"_return")>0 ) {
358 Class _return = classForName(parserName+"$"+testRuleName+"_return");
437 protected gUnitTestResult runTreeParser(String parserName, String lexerName, String testRuleName, String testTreeRuleName, gUnitTestInput testInput) throws Exception { argument
482 Method ruleName = parser.getMethod(testRuleName);
496 Class _return = classForName(parserName+"$"+testRuleName+"_return");
/external/antlr/antlr-3.4/lib/
H A Dantlr-3.4-complete.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/antlr/ org/antlr/analysis/ org/antlr/codegen/ org/ ...

Completed in 118 milliseconds