Java Doc for CharScanner.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.CharScanner

All known Subclasses:   persistence.antlr.actions.csharp.ActionLexer,  persistence.antlr.ANTLRTokdefLexer,  persistence.antlr.preprocessor.PreprocessorLexer,  persistence.antlr.ANTLRLexer,  oracle.toplink.essentials.internal.parsing.ejbql.antlr273.EJBQLLexer,  persistence.antlr.debug.DebuggingCharScanner,  persistence.antlr.actions.java.ActionLexer,  persistence.antlr.actions.cpp.ActionLexer,
CharScanner
abstract public class CharScanner implements TokenStream(Code)


Field Summary
final public static  charEOF_CHAR
    
final static  charNO_CHAR
    
protected  Token_returnToken
    
protected  booleancaseSensitive
    
protected  booleancaseSensitiveLiterals
    
protected  booleancommitToPath
     Used during filter mode to indicate that path is desired.
protected  ANTLRHashStringhashString
    
protected  LexerSharedInputStateinputState
    
protected  Hashtableliterals
    
protected  booleansaveConsumedInput
    
protected  inttabsize
     Tab chars are handled by tab() according to this value; override method to do anything weird with tabs.
protected  ANTLRStringBuffertext
    
protected  ClasstokenObjectClass
    
protected  inttraceDepth
    

Constructor Summary
public  CharScanner()
    
public  CharScanner(InputBuffer cb)
    
public  CharScanner(LexerSharedInputState sharedState)
    

Method Summary
public  charLA(int i)
    
public  voidappend(char c)
    
public  voidappend(String s)
    
public  voidcommit()
    
public  voidconsume()
    
public  voidconsumeUntil(int c)
    
public  voidconsumeUntil(BitSet set)
    
public  booleangetCaseSensitive()
    
final public  booleangetCaseSensitiveLiterals()
    
public  intgetColumn()
    
public  booleangetCommitToPath()
    
public  StringgetFilename()
    
public  InputBuffergetInputBuffer()
    
public  LexerSharedInputStategetInputState()
    
public  intgetLine()
    
public  intgetTabSize()
    
public  StringgetText()
    
public  TokengetTokenObject()
    
protected  TokenmakeToken(int t)
    
public  intmark()
    
public  voidmatch(char c)
    
public  voidmatch(BitSet b)
    
public  voidmatch(String s)
    
public  voidmatchNot(char c)
    
public  voidmatchRange(char c1, char c2)
    
public  voidnewline()
    
public  voidpanic()
    
public  voidpanic(String s)
     This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The default implementation of this method calls java.lang.System.exit(int) and writes directly to java.lang.System.err) , which is usually not appropriate when a translator is embedded into a larger application.
public  voidreportError(RecognitionException ex)
    
public  voidreportError(String s)
    
public  voidreportWarning(String s)
    
public  voidresetText()
    
public  voidrewind(int pos)
    
public  voidsetCaseSensitive(boolean t)
    
public  voidsetColumn(int c)
    
public  voidsetCommitToPath(boolean commit)
    
public  voidsetFilename(String f)
    
public  voidsetInputState(LexerSharedInputState state)
    
public  voidsetLine(int line)
    
public  voidsetTabSize(int size)
    
public  voidsetText(String s)
    
public  voidsetTokenObjectClass(String cl)
    
public  voidtab()
     advance the current column number by an appropriate amount according to tab size.
public  inttestLiteralsTable(int ttype)
    
public  inttestLiteralsTable(String text, int ttype)
     Test the text passed in against the literals table Override this method to perform a different literals test This is used primarily when you want to test a portion of a token.
public  chartoLower(char c)
    
public  voidtraceIn(String rname)
    
public  voidtraceIndent()
    
public  voidtraceOut(String rname)
    
public  voiduponEOF()
     This method is called by YourLexer.nextToken() when the lexer has hit EOF condition.

Field Detail
EOF_CHAR
final public static char EOF_CHAR(Code)



NO_CHAR
final static char NO_CHAR(Code)



_returnToken
protected Token _returnToken(Code)



caseSensitive
protected boolean caseSensitive(Code)



caseSensitiveLiterals
protected boolean caseSensitiveLiterals(Code)



commitToPath
protected boolean commitToPath(Code)
Used during filter mode to indicate that path is desired. A subsequent scan error will report an error as usual if acceptPath=true;



hashString
protected ANTLRHashString hashString(Code)



inputState
protected LexerSharedInputState inputState(Code)



literals
protected Hashtable literals(Code)



saveConsumedInput
protected boolean saveConsumedInput(Code)



tabsize
protected int tabsize(Code)
Tab chars are handled by tab() according to this value; override method to do anything weird with tabs.



text
protected ANTLRStringBuffer text(Code)



tokenObjectClass
protected Class tokenObjectClass(Code)



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




Constructor Detail
CharScanner
public CharScanner()(Code)



CharScanner
public CharScanner(InputBuffer cb)(Code)



CharScanner
public CharScanner(LexerSharedInputState sharedState)(Code)




Method Detail
LA
public char LA(int i) throws CharStreamException(Code)



append
public void append(char c)(Code)



append
public void append(String s)(Code)



commit
public void commit()(Code)



consume
public void consume() throws CharStreamException(Code)



consumeUntil
public void consumeUntil(int c) throws CharStreamException(Code)
Consume chars until one matches the given char



consumeUntil
public void consumeUntil(BitSet set) throws CharStreamException(Code)
Consume chars until one matches the given set



getCaseSensitive
public boolean getCaseSensitive()(Code)



getCaseSensitiveLiterals
final public boolean getCaseSensitiveLiterals()(Code)



getColumn
public int getColumn()(Code)



getCommitToPath
public boolean getCommitToPath()(Code)



getFilename
public String getFilename()(Code)



getInputBuffer
public InputBuffer getInputBuffer()(Code)



getInputState
public LexerSharedInputState getInputState()(Code)



getLine
public int getLine()(Code)



getTabSize
public int getTabSize()(Code)



getText
public String getText()(Code)
return a copy of the current text buffer



getTokenObject
public Token getTokenObject()(Code)



makeToken
protected Token makeToken(int t)(Code)



mark
public int mark()(Code)



match
public void match(char c) throws MismatchedCharException, CharStreamException(Code)



match
public void match(BitSet b) throws MismatchedCharException, CharStreamException(Code)



match
public void match(String s) throws MismatchedCharException, CharStreamException(Code)



matchNot
public void matchNot(char c) throws MismatchedCharException, CharStreamException(Code)



matchRange
public void matchRange(char c1, char c2) throws MismatchedCharException, CharStreamException(Code)



newline
public void newline()(Code)



panic
public void panic()(Code)

See Also:   CharScanner.panic(String)



panic
public void panic(String s)(Code)
This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The default implementation of this method calls java.lang.System.exit(int) and writes directly to java.lang.System.err) , which is usually not appropriate when a translator is embedded into a larger application. It is highly recommended that this method be overridden to handle the error in a way appropriate for your application (e.g. throw an unchecked exception).



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



resetText
public void resetText()(Code)



rewind
public void rewind(int pos)(Code)



setCaseSensitive
public void setCaseSensitive(boolean t)(Code)



setColumn
public void setColumn(int c)(Code)



setCommitToPath
public void setCommitToPath(boolean commit)(Code)



setFilename
public void setFilename(String f)(Code)



setInputState
public void setInputState(LexerSharedInputState state)(Code)



setLine
public void setLine(int line)(Code)



setTabSize
public void setTabSize(int size)(Code)



setText
public void setText(String s)(Code)



setTokenObjectClass
public void setTokenObjectClass(String cl)(Code)



tab
public void tab()(Code)
advance the current column number by an appropriate amount according to tab size. This method is called from consume().



testLiteralsTable
public int testLiteralsTable(int ttype)(Code)



testLiteralsTable
public int testLiteralsTable(String text, int ttype)(Code)
Test the text passed in against the literals table Override this method to perform a different literals test This is used primarily when you want to test a portion of a token.



toLower
public char toLower(char c)(Code)



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



traceIndent
public void traceIndent()(Code)



traceOut
public void traceOut(String rname) throws CharStreamException(Code)



uponEOF
public void uponEOF() throws TokenStreamException, CharStreamException(Code)
This method is called by YourLexer.nextToken() when the lexer has hit EOF condition. EOF is NOT a character. This method is not called if EOF is reached during syntactic predicate evaluation or during evaluation of normal lexical rules, which presumably would be an IOException. This traps the "normal" EOF condition. uponEOF() is called after the complete evaluation of the previous token and only if your parser asks for another token beyond that last non-EOF token. You might want to throw token or char stream exceptions like: "Heh, premature eof" or a retry stream exception ("I found the end of this file, go back to referencing file").



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.