Java Doc for Parser.java in  » Database-ORM » toplink » persistence » 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 » Database ORM » toplink » persistence.antlr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   persistence.antlr.Parser

All known Subclasses:   persistence.antlr.LLkParser,
Parser
abstract public class Parser (Code)


Field Summary
protected  ASTFactoryastFactory
     AST support code; parser delegates to this object.
protected  ParserSharedInputStateinputState
    
protected  ASTreturnAST
    
protected  String[]tokenNames
    
protected  HashtabletokenTypeToASTClassMap
     Constructed if any AST types specified in tokens{..}.
protected  inttraceDepth
    

Constructor Summary
public  Parser()
    
public  Parser(ParserSharedInputState state)
    

Method Summary
abstract public  intLA(int i)
     Return the token type of the ith token of lookahead where i=1 is the current token being examined by the parser (i.e., it has not been matched yet).
abstract public  TokenLT(int i)
    
public  voidaddMessageListener(MessageListener l)
    
public  voidaddParserListener(ParserListener l)
    
public  voidaddParserMatchListener(ParserMatchListener l)
    
public  voidaddParserTokenListener(ParserTokenListener l)
    
public  voidaddSemanticPredicateListener(SemanticPredicateListener l)
    
public  voidaddSyntacticPredicateListener(SyntacticPredicateListener l)
    
public  voidaddTraceListener(TraceListener l)
    
abstract public  voidconsume()
    
public  voidconsumeUntil(int tokenType)
    
public  voidconsumeUntil(BitSet set)
    
protected  voiddefaultDebuggingSetup(TokenStream lexer, TokenBuffer tokBuf)
    
public  ASTgetAST()
    
public  ASTFactorygetASTFactory()
    
public  StringgetFilename()
    
public  ParserSharedInputStategetInputState()
    
public  StringgetTokenName(int num)
    
public  String[]getTokenNames()
    
public  HashtablegetTokenTypeToASTClassMap()
     If the user specifies a tokens{} section with heterogeneous AST node types, then ANTLR generates code to fill this mapping.
public  booleanisDebugMode()
    
public  intmark()
    
public  voidmatch(int t)
     Make sure current lookahead symbol matches token type t.
public  voidmatch(BitSet b)
     Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.
public  voidmatchNot(int t)
    
public static  voidpanic()
    
public  voidremoveMessageListener(MessageListener l)
    
public  voidremoveParserListener(ParserListener l)
    
public  voidremoveParserMatchListener(ParserMatchListener l)
    
public  voidremoveParserTokenListener(ParserTokenListener l)
    
public  voidremoveSemanticPredicateListener(SemanticPredicateListener l)
    
public  voidremoveSyntacticPredicateListener(SyntacticPredicateListener l)
    
public  voidremoveTraceListener(TraceListener l)
    
public  voidreportError(RecognitionException ex)
    
public  voidreportError(String s)
    
public  voidreportWarning(String s)
    
public  voidrewind(int pos)
    
public  voidsetASTFactory(ASTFactory f)
     Specify an object with support code (shared by Parser and TreeParser.
public  voidsetASTNodeClass(String cl)
    
public  voidsetASTNodeType(String nodeType)
     Specify the type of node to create during tree building; use setASTNodeClass now to be consistent with Token Object Type accessor.
public  voidsetDebugMode(boolean debugMode)
    
public  voidsetFilename(String f)
    
public  voidsetIgnoreInvalidDebugCalls(boolean value)
    
public  voidsetInputState(ParserSharedInputState state)
    
public  voidsetTokenBuffer(TokenBuffer t)
    
public  voidtraceIn(String rname)
    
public  voidtraceIndent()
    
public  voidtraceOut(String rname)
    

Field Detail
astFactory
protected ASTFactory astFactory(Code)
AST support code; parser delegates to this object. This is set during parser construction by default to either "new ASTFactory()" or a ctor that has a token type to class map for hetero nodes.



inputState
protected ParserSharedInputState inputState(Code)



returnAST
protected AST returnAST(Code)
AST return value for a rule is squirreled away here



tokenNames
protected String[] tokenNames(Code)
Table of token type to token names



tokenTypeToASTClassMap
protected Hashtable tokenTypeToASTClassMap(Code)
Constructed if any AST types specified in tokens{..}. Maps an Integer->Class object.



traceDepth
protected int traceDepth(Code)
Used to keep track of indentdepth for traceIn/Out




Constructor Detail
Parser
public Parser()(Code)



Parser
public Parser(ParserSharedInputState state)(Code)




Method Detail
LA
abstract public int LA(int i) throws TokenStreamException(Code)
Return the token type of the ith token of lookahead where i=1 is the current token being examined by the parser (i.e., it has not been matched yet).



LT
abstract public Token LT(int i) throws TokenStreamException(Code)
Return the ith token of lookahead



addMessageListener
public void addMessageListener(MessageListener l)(Code)



addParserListener
public void addParserListener(ParserListener l)(Code)



addParserMatchListener
public void addParserMatchListener(ParserMatchListener l)(Code)



addParserTokenListener
public void addParserTokenListener(ParserTokenListener l)(Code)



addSemanticPredicateListener
public void addSemanticPredicateListener(SemanticPredicateListener l)(Code)



addSyntacticPredicateListener
public void addSyntacticPredicateListener(SyntacticPredicateListener l)(Code)



addTraceListener
public void addTraceListener(TraceListener l)(Code)



consume
abstract public void consume() throws TokenStreamException(Code)
Get another token object from the token stream



consumeUntil
public void consumeUntil(int tokenType) throws TokenStreamException(Code)
Consume tokens until one matches the given token



consumeUntil
public void consumeUntil(BitSet set) throws TokenStreamException(Code)
Consume tokens until one matches the given token set



defaultDebuggingSetup
protected void defaultDebuggingSetup(TokenStream lexer, TokenBuffer tokBuf)(Code)



getAST
public AST getAST()(Code)
Get the AST return value squirreled away in the parser



getASTFactory
public ASTFactory getASTFactory()(Code)



getFilename
public String getFilename()(Code)



getInputState
public ParserSharedInputState getInputState()(Code)



getTokenName
public String getTokenName(int num)(Code)



getTokenNames
public String[] getTokenNames()(Code)



getTokenTypeToASTClassMap
public Hashtable getTokenTypeToASTClassMap()(Code)
If the user specifies a tokens{} section with heterogeneous AST node types, then ANTLR generates code to fill this mapping.



isDebugMode
public boolean isDebugMode()(Code)



mark
public int mark()(Code)



match
public void match(int t) throws MismatchedTokenException, TokenStreamException(Code)
Make sure current lookahead symbol matches token type t. Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.



match
public void match(BitSet b) throws MismatchedTokenException, TokenStreamException(Code)
Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.



matchNot
public void matchNot(int t) throws MismatchedTokenException, TokenStreamException(Code)



panic
public static void panic()(Code)



removeMessageListener
public void removeMessageListener(MessageListener l)(Code)



removeParserListener
public void removeParserListener(ParserListener l)(Code)



removeParserMatchListener
public void removeParserMatchListener(ParserMatchListener l)(Code)



removeParserTokenListener
public void removeParserTokenListener(ParserTokenListener l)(Code)



removeSemanticPredicateListener
public void removeSemanticPredicateListener(SemanticPredicateListener l)(Code)



removeSyntacticPredicateListener
public void removeSyntacticPredicateListener(SyntacticPredicateListener l)(Code)



removeTraceListener
public void removeTraceListener(TraceListener l)(Code)



reportError
public void reportError(RecognitionException ex)(Code)
Parser error-reporting function can be overridden in subclass



reportError
public void reportError(String s)(Code)
Parser error-reporting function can be overridden in subclass



reportWarning
public void reportWarning(String s)(Code)
Parser warning-reporting function can be overridden in subclass



rewind
public void rewind(int pos)(Code)



setASTFactory
public void setASTFactory(ASTFactory f)(Code)
Specify an object with support code (shared by Parser and TreeParser. Normally, the programmer does not play with this, using setASTNodeType instead.



setASTNodeClass
public void setASTNodeClass(String cl)(Code)



setASTNodeType
public void setASTNodeType(String nodeType)(Code)
Specify the type of node to create during tree building; use setASTNodeClass now to be consistent with Token Object Type accessor.



setDebugMode
public void setDebugMode(boolean debugMode)(Code)



setFilename
public void setFilename(String f)(Code)



setIgnoreInvalidDebugCalls
public void setIgnoreInvalidDebugCalls(boolean value)(Code)



setInputState
public void setInputState(ParserSharedInputState state)(Code)



setTokenBuffer
public void setTokenBuffer(TokenBuffer t)(Code)
Set or change the input token buffer



traceIn
public void traceIn(String rname) throws TokenStreamException(Code)



traceIndent
public void traceIndent()(Code)



traceOut
public void traceOut(String rname) throws TokenStreamException(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.