Java Doc for Lexer.java in  » Scripting » Kawa » gnu » ecmascript » 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 » Scripting » Kawa » gnu.ecmascript 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


gnu.text.Lexer
   gnu.ecmascript.Lexer

Lexer
public class Lexer extends gnu.text.Lexer (Code)
Reads EcmaScript token from a InPort.


Field Summary
final public static  CharcolonToken
    
final public static  CharcommaToken
    
final public static  CharcondToken
    
final public static  ChardotToken
    
final public static  ReservedelseToken
    
final public static  ObjecteofToken
    
final public static  ObjecteolToken
    
final public static  CharequalToken
    
final public static  CharlbraceToken
    
final public static  CharlbracketToken
    
final public static  CharlparenToken
    
final public static  ReservednewToken
    
final public static  CharnotToken
    
final public static  CharrbraceToken
    
final public static  CharrbracketToken
    
static  java.util.Hashtablereserved
    
final public static  CharrparenToken
    
final public static  CharsemicolonToken
    
final public static  ChartildeToken
    

Constructor Summary
public  Lexer(InPort port)
    

Method Summary
public static  ObjectcheckReserved(String name)
    
public  StringgetIdentifier(int ch)
    
public  DoublegetNumericLiteral(int c)
    
public  StringgetStringLiteral(char quote)
    
public  ObjectgetToken()
     Returns the next token.
public static  ObjectgetToken(InPort inp)
    
static synchronized  voidinitReserved()
    
public static  voidmain(String[] args)
    
public  ObjectmaybeAssignment(Object token)
    

Field Detail
colonToken
final public static Char colonToken(Code)



commaToken
final public static Char commaToken(Code)



condToken
final public static Char condToken(Code)



dotToken
final public static Char dotToken(Code)



elseToken
final public static Reserved elseToken(Code)



eofToken
final public static Object eofToken(Code)



eolToken
final public static Object eolToken(Code)



equalToken
final public static Char equalToken(Code)



lbraceToken
final public static Char lbraceToken(Code)



lbracketToken
final public static Char lbracketToken(Code)



lparenToken
final public static Char lparenToken(Code)



newToken
final public static Reserved newToken(Code)



notToken
final public static Char notToken(Code)



rbraceToken
final public static Char rbraceToken(Code)



rbracketToken
final public static Char rbracketToken(Code)



reserved
static java.util.Hashtable reserved(Code)



rparenToken
final public static Char rparenToken(Code)



semicolonToken
final public static Char semicolonToken(Code)



tildeToken
final public static Char tildeToken(Code)




Constructor Detail
Lexer
public Lexer(InPort port)(Code)




Method Detail
checkReserved
public static Object checkReserved(String name)(Code)



getIdentifier
public String getIdentifier(int ch) throws java.io.IOException(Code)



getNumericLiteral
public Double getNumericLiteral(int c) throws java.io.IOException(Code)



getStringLiteral
public String getStringLiteral(char quote) throws java.io.IOException, gnu.text.SyntaxException(Code)



getToken
public Object getToken() throws java.io.IOException, gnu.text.SyntaxException(Code)
Returns the next token. Returns:
end-of-file
Sequence.eofValue
end-of-line>dd>eolToken
reserved word
???
identifier>
a java.lang.String
punctuator
???
Literals are returned a QuoteExp objects, Specifically:
numeric literal
a QuoteExp of a java.lang.Double value
boolean literal
a QuoteExp of java.lang.Boolean.TRUE or FALSE
null literal
a QuoteExp whose value is null
string literal
a QuoteExp whose value is a String



getToken
public static Object getToken(InPort inp) throws java.io.IOException, gnu.text.SyntaxException(Code)



initReserved
static synchronized void initReserved()(Code)



main
public static void main(String[] args)(Code)



maybeAssignment
public Object maybeAssignment(Object token) throws java.io.IOException, gnu.text.SyntaxException(Code)



Fields inherited from gnu.text.Lexer
protected boolean interactive(Code)(Java Doc)
protected int nesting(Code)(Java Doc)
protected LineBufferedReader port(Code)(Java Doc)
public char[] tokenBuffer(Code)(Java Doc)
public int tokenBufferLength(Code)(Java Doc)

Methods inherited from gnu.text.Lexer
public boolean checkErrors(PrintWriter out, int max)(Code)(Java Doc)
public boolean checkNext(char ch) throws java.io.IOException(Code)(Java Doc)
public void clearErrors()(Code)(Java Doc)
public void close() throws java.io.IOException(Code)(Java Doc)
public void eofError(String msg) throws SyntaxException(Code)(Java Doc)
public void eofError(String message, int startLine, int startColumn) throws SyntaxException(Code)(Java Doc)
public void error(char severity, String filename, int line, int column, String message)(Code)(Java Doc)
public void error(char severity, String message)(Code)(Java Doc)
public void error(String message)(Code)(Java Doc)
public void fatal(String message) throws SyntaxException(Code)(Java Doc)
public int getColumnNumber()(Code)(Java Doc)
public SourceError getErrors()(Code)(Java Doc)
public int getLineNumber()(Code)(Java Doc)
public SourceMessages getMessages()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
final public LineBufferedReader getPort()(Code)(Java Doc)
public boolean isInteractive()(Code)(Java Doc)
public void mark() throws java.io.IOException(Code)(Java Doc)
public int peek() throws java.io.IOException(Code)(Java Doc)
public void popNesting(char save)(Code)(Java Doc)
public char pushNesting(char promptChar)(Code)(Java Doc)
public int read() throws java.io.IOException(Code)(Java Doc)
public int read(char[] buf, int offset, int length) throws java.io.IOException(Code)(Java Doc)
public static long readDigitsInBuffer(LineBufferedReader port, int radix)(Code)(Java Doc)
public int readOptionalExponent() throws java.io.IOException(Code)(Java Doc)
public void reset() throws java.io.IOException(Code)(Java Doc)
public boolean seenErrors()(Code)(Java Doc)
public void setInteractive(boolean v)(Code)(Java Doc)
public void setMessages(SourceMessages messages)(Code)(Java Doc)
public void skip() throws java.io.IOException(Code)(Java Doc)
protected void skip_quick() throws java.io.IOException(Code)(Java Doc)
public void tokenBufferAppend(int ch)(Code)(Java Doc)
public void unread(int ch) throws java.io.IOException(Code)(Java Doc)
protected void unread() throws java.io.IOException(Code)(Java Doc)
protected void unread_quick() throws java.io.IOException(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.