Java Doc for TreeToNFAConverter.java in  » Parser » antlr-3.0.1 » org » antlr » tool » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Parser » antlr 3.0.1 » org.antlr.tool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.antlr.tool.TreeToNFAConverter

TreeToNFAConverter
public class TreeToNFAConverter extends antlr.TreeParser implements TreeToNFAConverterTokenTypes(Code)
Build an NFA from a tree representing an ANTLR grammar.


Field Summary
final public static  String[]_tokenNames
    
final public static  BitSet_tokenSet_0
    
protected  intblockLevel
    
protected  StringcurrentRuleName
    
protected  NFAFactoryfactory
    
protected  Grammargrammar
    
protected  NFAnfa
    
protected  intouterAltNum
    

Constructor Summary
public  TreeToNFAConverter(Grammar g, NFA nfa, NFAFactory factory)
    
public  TreeToNFAConverter()
    

Method Summary
protected  voidaddFollowTransition(String ruleName, NFAState following)
    
final public  StateClusteralternative(AST _t)
    
final public  voidast_suffix(AST _t)
    
final public  StateClusteratom(AST _t)
    
final public  StateClusteratom_or_notatom(AST _t)
    
final public  voidattrScope(AST _t)
    
final public  StateClusterblock(AST _t)
    
final public  StateClusterebnf(AST _t)
    
final public  StateClusterelement(AST _t)
    
final public  voidexceptionGroup(AST _t)
    
final public  voidexceptionHandler(AST _t)
    
final public  voidfinallyClause(AST _t)
    
protected  voidfinish()
    
final public  voidgrammar(AST _t)
    
final public  voidgrammarSpec(AST _t)
    
protected  voidinit()
    
final public  voidmodifier(AST _t)
    
public  voidreportError(RecognitionException ex)
    
final public  voidrewrite(AST _t)
    
final public  voidrule(AST _t)
    
final public  voidruleScopeSpec(AST _t)
    
final public  voidrules(AST _t)
    
final public  StateClusterset(AST _t)
    
final public  voidsetElement(AST _t, IntSet elements)
    
final public  IntSetsetRule(AST _t)
    
final public  voidtestBlockAsSet(AST _t)
     Check to see if this block can be a set.
final public  voidtestSetElement(AST _t)
     Match just an element; no ast suffix etc..
final public  voidtestSetRule(AST _t)
    
final public  StateClustertree(AST _t)
    

Field Detail
_tokenNames
final public static String[] _tokenNames(Code)



_tokenSet_0
final public static BitSet _tokenSet_0(Code)



blockLevel
protected int blockLevel(Code)



currentRuleName
protected String currentRuleName(Code)



factory
protected NFAFactory factory(Code)
Factory used to create nodes and submachines



grammar
protected Grammar grammar(Code)
Which grammar are we converting an NFA for?



nfa
protected NFA nfa(Code)
Which NFA object are we filling in?



outerAltNum
protected int outerAltNum(Code)




Constructor Detail
TreeToNFAConverter
public TreeToNFAConverter(Grammar g, NFA nfa, NFAFactory factory)(Code)



TreeToNFAConverter
public TreeToNFAConverter()(Code)




Method Detail
addFollowTransition
protected void addFollowTransition(String ruleName, NFAState following)(Code)



alternative
final public StateCluster alternative(AST _t) throws RecognitionException(Code)



ast_suffix
final public void ast_suffix(AST _t) throws RecognitionException(Code)



atom
final public StateCluster atom(AST _t) throws RecognitionException(Code)



atom_or_notatom
final public StateCluster atom_or_notatom(AST _t) throws RecognitionException(Code)



attrScope
final public void attrScope(AST _t) throws RecognitionException(Code)



block
final public StateCluster block(AST _t) throws RecognitionException(Code)



ebnf
final public StateCluster ebnf(AST _t) throws RecognitionException(Code)



element
final public StateCluster element(AST _t) throws RecognitionException(Code)



exceptionGroup
final public void exceptionGroup(AST _t) throws RecognitionException(Code)



exceptionHandler
final public void exceptionHandler(AST _t) throws RecognitionException(Code)



finallyClause
final public void finallyClause(AST _t) throws RecognitionException(Code)



finish
protected void finish()(Code)



grammar
final public void grammar(AST _t) throws RecognitionException(Code)



grammarSpec
final public void grammarSpec(AST _t) throws RecognitionException(Code)



init
protected void init()(Code)



modifier
final public void modifier(AST _t) throws RecognitionException(Code)



reportError
public void reportError(RecognitionException ex)(Code)



rewrite
final public void rewrite(AST _t) throws RecognitionException(Code)



rule
final public void rule(AST _t) throws RecognitionException(Code)



ruleScopeSpec
final public void ruleScopeSpec(AST _t) throws RecognitionException(Code)



rules
final public void rules(AST _t) throws RecognitionException(Code)



set
final public StateCluster set(AST _t) throws RecognitionException(Code)



setElement
final public void setElement(AST _t, IntSet elements) throws RecognitionException(Code)



setRule
final public IntSet setRule(AST _t) throws RecognitionException(Code)



testBlockAsSet
final public void testBlockAsSet(AST _t) throws RecognitionException(Code)
Check to see if this block can be a set. Can't have actions etc... Also can't be in a rule with a rewrite as we need to track what's inside set for use in rewrite.



testSetElement
final public void testSetElement(AST _t) throws RecognitionException(Code)
Match just an element; no ast suffix etc..



testSetRule
final public void testSetRule(AST _t) throws RecognitionException(Code)



tree
final public StateCluster tree(AST _t) throws RecognitionException(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.