Java Doc for LexAnn.java in  » Scripting » FScript » murlen » util » fscript » 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 » FScript » murlen.util.fscript 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   murlen.util.fscript.LexAnn

LexAnn
final class LexAnn (Code)
Re-Implementation of StreamTokenizer for FScript

Copyright (C) 2000 murlen.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA

This class is a re-implementation of Sun's StreamTokenizer class as it was causing problems (especially parsing -ve numbers).


author:
   murlen
author:
   Joachim Van der Auwera
version:
   1.12
version:
   changes by Joachim Van der Auwera
version:
   31.08.2001
version:
   - simplified (speeded up) handling of comments (there was also an
version:
   inconsistency in the newline handling inside and outside comments).
version:
   - small mistake disallowed the letter 'A' in TT_WORD
version:
   declares a string a, which is initialised to one double quote.
version:
   11.8.2002 (murlen) Changed to allow \n \r \" \t in strings
version:
   17.02.2003 (jvda) Also allow \\ in strings
version:
   23.11.2003 (jvda) major rework of nextT() for speed
version:
   renumbered TT_xxx constants for faster switch statements
version:
   14.04.2004 (murlen) elsif added


Field Summary
final public static  intTT_ARRAY
    
final public static  intTT_DEFDOUBLE
    
final public static  intTT_DEFFUNC
    
final public static  intTT_DEFINT
    
final public static  intTT_DEFOBJECT
    
final public static  intTT_DEFSTRING
    
final public static  intTT_DIV
    
final public static  intTT_DOUBLE
    
final public static  intTT_EDEFFUNC
    
final public static  intTT_EIF
    
final public static  intTT_ELSE
    
final public static  intTT_ELSIF
    
final public static  intTT_EOF
    
final public static  intTT_EOL
    
final public static  intTT_EQ
    
final public static  intTT_EWHILE
    
final public static  intTT_FUNC
    
final public static  intTT_IF
    
final public static  intTT_INTEGER
    
final public static  intTT_LAND
    
final public static  intTT_LEQ
    
final public static  intTT_LGR
    
final public static  intTT_LGRE
    
final public static  intTT_LLS
    
final public static  intTT_LLSE
    
final public static  intTT_LNEQ
    
final public static  intTT_LOR
    
final public static  intTT_MINUS
    
final public static  intTT_MOD
    
final public static  intTT_MULT
    
final public static  intTT_NOT
    
final public static  intTT_NULL
    
final public static  intTT_PLUS
    
final public static  intTT_RETURN
    
final public static  intTT_STRING
    
final public static  intTT_THEN
    
final public static  intTT_WHILE
    
final public static  intTT_WORD
    
 intttype
    
 Objectvalue
    

Constructor Summary
 LexAnn()
    
 LexAnn(char[] firstLine)
    

Method Summary
 StringgetLine()
    
 intnextToken()
    
 voidpushBack()
    
 voidsetString(char[] str)
    
public  StringtoString()
    

Field Detail
TT_ARRAY
final public static int TT_ARRAY(Code)



TT_DEFDOUBLE
final public static int TT_DEFDOUBLE(Code)



TT_DEFFUNC
final public static int TT_DEFFUNC(Code)



TT_DEFINT
final public static int TT_DEFINT(Code)



TT_DEFOBJECT
final public static int TT_DEFOBJECT(Code)



TT_DEFSTRING
final public static int TT_DEFSTRING(Code)



TT_DIV
final public static int TT_DIV(Code)



TT_DOUBLE
final public static int TT_DOUBLE(Code)



TT_EDEFFUNC
final public static int TT_EDEFFUNC(Code)



TT_EIF
final public static int TT_EIF(Code)



TT_ELSE
final public static int TT_ELSE(Code)



TT_ELSIF
final public static int TT_ELSIF(Code)



TT_EOF
final public static int TT_EOF(Code)



TT_EOL
final public static int TT_EOL(Code)



TT_EQ
final public static int TT_EQ(Code)



TT_EWHILE
final public static int TT_EWHILE(Code)



TT_FUNC
final public static int TT_FUNC(Code)



TT_IF
final public static int TT_IF(Code)



TT_INTEGER
final public static int TT_INTEGER(Code)



TT_LAND
final public static int TT_LAND(Code)



TT_LEQ
final public static int TT_LEQ(Code)



TT_LGR
final public static int TT_LGR(Code)



TT_LGRE
final public static int TT_LGRE(Code)



TT_LLS
final public static int TT_LLS(Code)



TT_LLSE
final public static int TT_LLSE(Code)



TT_LNEQ
final public static int TT_LNEQ(Code)



TT_LOR
final public static int TT_LOR(Code)



TT_MINUS
final public static int TT_MINUS(Code)



TT_MOD
final public static int TT_MOD(Code)



TT_MULT
final public static int TT_MULT(Code)



TT_NOT
final public static int TT_NOT(Code)



TT_NULL
final public static int TT_NULL(Code)



TT_PLUS
final public static int TT_PLUS(Code)



TT_RETURN
final public static int TT_RETURN(Code)



TT_STRING
final public static int TT_STRING(Code)



TT_THEN
final public static int TT_THEN(Code)



TT_WHILE
final public static int TT_WHILE(Code)



TT_WORD
final public static int TT_WORD(Code)



ttype
int ttype(Code)
contains the current token type



value
Object value(Code)
Current token value object




Constructor Detail
LexAnn
LexAnn()(Code)
Constructor



LexAnn
LexAnn(char[] firstLine)(Code)
Convinience constructor which sets line as well




Method Detail
getLine
String getLine()(Code)
get the line which is currently being parsed



nextToken
int nextToken() throws IOException(Code)
Read the next token int - which is the charater read (not very useful)



pushBack
void pushBack()(Code)
Causes next call to nextToken to return same value



setString
void setString(char[] str)(Code)
Sets the internal line buffer
Parameters:
  str - - the string to use



toString
public String toString()(Code)
String representation of token



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.