Java Doc for DefineGrammarSymbols.java in  » IDE-Netbeans » cnd » antlr » 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 » IDE Netbeans » cnd » antlr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   antlr.DefineGrammarSymbols

All known Subclasses:   antlr.MakeGrammar,
DefineGrammarSymbols
public class DefineGrammarSymbols implements ANTLRGrammarParseBehavior(Code)
DefineGrammarSymbols is a behavior for the ANTLRParser that adds all the token and rule symbols to the grammar symbol table. Token types are assigned to token symbols in this class also. The token type for a token is done in the order seen (lexically).


Field Summary
final static  StringDEFAULT_TOKENMANAGER_NAME
    
 LLkAnalyzeranalyzer
    
 String[]args
    
protected  Grammargrammar
    
protected  Hashtablegrammars
    
protected  HashtableheaderActions
    
 Stringlanguage
    
protected  intnumLexers
    
protected  intnumParsers
    
protected  intnumTreeParsers
    
 TokenthePreambleAction
    
protected  HashtabletokenManagers
    
protected  Tooltool
    

Constructor Summary
public  DefineGrammarSymbols(Tool tool_, String[] args_, LLkAnalyzer analyzer_)
    

Method Summary
public  void_refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)
    
public  void_refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)
    
public  voidabortGrammar()
    
public  voidbeginAlt(boolean doAST_)
    
public  voidbeginChildList()
    
public  voidbeginExceptionGroup()
    
public  voidbeginExceptionSpec(Token label)
    
public  voidbeginSubRule(Token label, Token start, boolean not)
    
public  voidbeginTree(Token tok)
    
public  voiddefineRuleName(Token r, String access, boolean ruleAutoGen, String docComment)
    
public  voiddefineToken(Token tokname, Token tokliteral)
     Define a token from tokens {...}.
public  voidendAlt()
    
public  voidendChildList()
    
public  voidendExceptionGroup()
    
public  voidendExceptionSpec()
    
public  voidendGrammar()
    
public  voidendOptions()
     Called after the optional options section, to compensate for options that may not have been set.
public  voidendRule(String r)
    
public  voidendSubRule()
    
public  voidendTree()
    
public  StringgetHeaderAction(String name)
    
public  intgetHeaderActionLine(String name)
    
public  voidhasError()
    
public  voidnoASTSubRule()
    
public  voidoneOrMoreSubRule()
    
public  voidoptionalSubRule()
    
public  voidrefAction(Token action)
    
public  voidrefArgAction(Token action)
    
public  voidrefCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)
    
public  voidrefCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)
    
public  voidrefElementOption(Token option, Token value)
    
public  voidrefExceptionHandler(Token exTypeAndName, Token action)
    
public  voidrefHeaderAction(Token name, Token act)
    
public  voidrefInitAction(Token action)
    
public  voidrefMemberAction(Token act)
    
public  voidrefPreambleAction(Token act)
    
public  voidrefReturnAction(Token returnAction)
    
public  voidrefRule(Token idAssign, Token r, Token label, Token args, int autoGenType)
    
public  voidrefSemPred(Token pred)
    
public  voidrefStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)
    
public  voidrefToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)
    
public  voidrefTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)
    
public  voidrefTokensSpecElementOption(Token tok, Token option, Token value)
    
public  voidrefTreeSpecifier(Token treeSpec)
    
public  voidrefWildcard(Token t, Token label, int autoGenType)
    
public  voidreset()
    
public  voidsetArgOfRuleRef(Token argaction)
    
public  voidsetCharVocabulary(BitSet b)
    
public  voidsetFileOption(Token key, Token value, String filename)
     setFileOption: Associate an option value with a key.
public  voidsetGrammarOption(Token key, Token value)
     setGrammarOption: Associate an option value with a key.
public  voidsetRuleOption(Token key, Token value)
    
public  voidsetSubruleOption(Token key, Token value)
    
public  voidsetUserExceptions(String thr)
    
public  voidstartLexer(String file, Token name, String superClass, String doc)
    
public  voidstartParser(String file, Token name, String superClass, String doc)
    
public  voidstartTreeWalker(String file, Token name, String superClass, String doc)
    
public  voidsynPred()
    
public  voidzeroOrMoreSubRule()
    

Field Detail
DEFAULT_TOKENMANAGER_NAME
final static String DEFAULT_TOKENMANAGER_NAME(Code)



analyzer
LLkAnalyzer analyzer(Code)



args
String[] args(Code)



grammar
protected Grammar grammar(Code)



grammars
protected Hashtable grammars(Code)



headerActions
protected Hashtable headerActions(Code)



language
String language(Code)



numLexers
protected int numLexers(Code)



numParsers
protected int numParsers(Code)



numTreeParsers
protected int numTreeParsers(Code)



thePreambleAction
Token thePreambleAction(Code)



tokenManagers
protected Hashtable tokenManagers(Code)



tool
protected Tool tool(Code)




Constructor Detail
DefineGrammarSymbols
public DefineGrammarSymbols(Tool tool_, String[] args_, LLkAnalyzer analyzer_)(Code)




Method Detail
_refStringLiteral
public void _refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)



_refToken
public void _refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)
Reference a token



abortGrammar
public void abortGrammar()(Code)
Abort the processing of a grammar due to syntax errors



beginAlt
public void beginAlt(boolean doAST_)(Code)



beginChildList
public void beginChildList()(Code)



beginExceptionGroup
public void beginExceptionGroup()(Code)



beginExceptionSpec
public void beginExceptionSpec(Token label)(Code)



beginSubRule
public void beginSubRule(Token label, Token start, boolean not)(Code)



beginTree
public void beginTree(Token tok) throws SemanticException(Code)



defineRuleName
public void defineRuleName(Token r, String access, boolean ruleAutoGen, String docComment) throws SemanticException(Code)
Define a lexer or parser rule



defineToken
public void defineToken(Token tokname, Token tokliteral)(Code)
Define a token from tokens {...}. Must be label and literal or just label or just a literal.



endAlt
public void endAlt()(Code)



endChildList
public void endChildList()(Code)



endExceptionGroup
public void endExceptionGroup()(Code)



endExceptionSpec
public void endExceptionSpec()(Code)



endGrammar
public void endGrammar()(Code)



endOptions
public void endOptions()(Code)
Called after the optional options section, to compensate for options that may not have been set. This method is bigger than it needs to be, but is much more clear if I delineate all the cases.



endRule
public void endRule(String r)(Code)



endSubRule
public void endSubRule()(Code)



endTree
public void endTree()(Code)



getHeaderAction
public String getHeaderAction(String name)(Code)



getHeaderActionLine
public int getHeaderActionLine(String name)(Code)



hasError
public void hasError()(Code)



noASTSubRule
public void noASTSubRule()(Code)



oneOrMoreSubRule
public void oneOrMoreSubRule()(Code)



optionalSubRule
public void optionalSubRule()(Code)



refAction
public void refAction(Token action)(Code)



refArgAction
public void refArgAction(Token action)(Code)



refCharLiteral
public void refCharLiteral(Token lit, Token label, boolean inverted, int autoGenType, boolean lastInRule)(Code)



refCharRange
public void refCharRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)



refElementOption
public void refElementOption(Token option, Token value)(Code)



refExceptionHandler
public void refExceptionHandler(Token exTypeAndName, Token action)(Code)



refHeaderAction
public void refHeaderAction(Token name, Token act)(Code)



refInitAction
public void refInitAction(Token action)(Code)



refMemberAction
public void refMemberAction(Token act)(Code)



refPreambleAction
public void refPreambleAction(Token act)(Code)



refReturnAction
public void refReturnAction(Token returnAction)(Code)



refRule
public void refRule(Token idAssign, Token r, Token label, Token args, int autoGenType)(Code)



refSemPred
public void refSemPred(Token pred)(Code)



refStringLiteral
public void refStringLiteral(Token lit, Token label, int autoGenType, boolean lastInRule)(Code)



refToken
public void refToken(Token assignId, Token t, Token label, Token args, boolean inverted, int autoGenType, boolean lastInRule)(Code)
Reference a token



refTokenRange
public void refTokenRange(Token t1, Token t2, Token label, int autoGenType, boolean lastInRule)(Code)



refTokensSpecElementOption
public void refTokensSpecElementOption(Token tok, Token option, Token value)(Code)



refTreeSpecifier
public void refTreeSpecifier(Token treeSpec)(Code)



refWildcard
public void refWildcard(Token t, Token label, int autoGenType)(Code)



reset
public void reset()(Code)
Get ready to process a new grammar



setArgOfRuleRef
public void setArgOfRuleRef(Token argaction)(Code)



setCharVocabulary
public void setCharVocabulary(BitSet b)(Code)
Set the character vocabulary for a lexer



setFileOption
public void setFileOption(Token key, Token value, String filename)(Code)
setFileOption: Associate an option value with a key. This applies to options for an entire grammar file.
Parameters:
  key - The token containing the option name
Parameters:
  value - The token containing the option value.



setGrammarOption
public void setGrammarOption(Token key, Token value)(Code)
setGrammarOption: Associate an option value with a key. This function forwards to Grammar.setOption for some options.
Parameters:
  key - The token containing the option name
Parameters:
  value - The token containing the option value.



setRuleOption
public void setRuleOption(Token key, Token value)(Code)



setSubruleOption
public void setSubruleOption(Token key, Token value)(Code)



setUserExceptions
public void setUserExceptions(String thr)(Code)



startLexer
public void startLexer(String file, Token name, String superClass, String doc)(Code)
Start a new lexer



startParser
public void startParser(String file, Token name, String superClass, String doc)(Code)
Start a new parser



startTreeWalker
public void startTreeWalker(String file, Token name, String superClass, String doc)(Code)
Start a new tree-walker



synPred
public void synPred()(Code)



zeroOrMoreSubRule
public void zeroOrMoreSubRule()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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