Java Doc for ThemeParser.java in  » Development » ivatamasks » com » ivata » mask » web » theme » parser » 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 » Development » ivatamasks » com.ivata.mask.web.theme.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.ivata.mask.web.theme.parser.ThemeParser

ThemeParser
public class ThemeParser extends antlr.LLkParser implements ThemeParserTokenTypes(Code)

This is ivata's theme parser, automatically generated by antlr. This theme parser applies simple property values to HTML texts, to customize the appearance of theme sections.


$Log: ThemeParser.java,v $
Revision 1.9 2005/10/12 18:35:57 colinmacleod
Standardized format of Logger declaration - to make it easier to find instances
which are not both static and final.

Revision 1.8 2005/10/03 10:17:26 colinmacleod
Fixed some style and javadoc issues.

Revision 1.5 2005/04/12 11:07:40 colinmacleod
Added logger to improve error
handling.
Checked for empty strings when
converting numbers in lexer.

Revision 1.4 2005/04/11 12:11:59 colinmacleod
Fixed comment (removed HTML style start and
end to comment).

Revision 1.3 2005/04/09 18:04:22 colinmacleod
Changed copyright text to GPL v2 explicitly.

Revision 1.2 2005/01/19 13:07:19 colinmacleod
Updated comment format to include version in since line.

Revision 1.1 2005/01/06 22:03:49 colinmacleod
Moved up a version number.
Changed copyright notices to 2005.
Updated the documentation:
- started working on multiproject:site docu.
- changed the logo.
Added checkstyle and fixed LOADS of style issues.
Added separate thirdparty subproject.
Added struts (in web), util and webgui (in webtheme) from ivata op.

Revision 1.3 2004/11/03 16:16:45 colinmacleod
Removed System.out.print("TEST")

Revision 1.2 2004/03/21 21:16:38 colinmacleod
Shortened name to ivata op.

Revision 1.1.1.1 2004/01/27 20:59:53 colinmacleod
Moved ivata op to SourceForge.

Revision 1.2 2003/10/15 14:13:40 colin
fixinf for XDoclet

Revision 1.3 2003/02/28 15:29:50 colin
made CONDITIONAL_CONTENT optional to fix bug in tabs

Revision 1.2 2003/02/28 13:59:25 colin
updated to fix bug with some characters in CONDITIONAL_CONTENT
implemented ATTRIBUTE_VALUE

Revision 1.1 2003/02/24 19:33:33 colin
Moved to new subproject.




since:
   ivata masks 0.4 (2001-06-29)
author:
   Colin MacLeod
author:
   colin.macleod@ivata.com
version:
   $Revision: 1.9 $
See Also:   com.ivata.mask.web.theme


Field Summary
final public static  String[]_tokenNames
    
final public static  BitSet_tokenSet_0
    
final public static  BitSet_tokenSet_1
    

Constructor Summary
protected  ThemeParser(TokenBuffer tokenBuf, int k)
    
public  ThemeParser(TokenBuffer tokenBuf)
    
protected  ThemeParser(TokenStream lexer, int k)
    
public  ThemeParser(TokenStream lexer)
    
public  ThemeParser(ParserSharedInputState state)
    

Method Summary
final public  voidattribute()
    
final public  voidcondition()
    
final public  voiddocument()
    
public static  voidmain(String[] args)
    

This main routine can be used to text the parser.

final public  voidmath()
    
public static  Stringparse(String parseString, Properties properties, String name)
    
final public  voidproperty()
    

Field Detail
_tokenNames
final public static String[] _tokenNames(Code)



_tokenSet_0
final public static BitSet _tokenSet_0(Code)



_tokenSet_1
final public static BitSet _tokenSet_1(Code)




Constructor Detail
ThemeParser
protected ThemeParser(TokenBuffer tokenBuf, int k)(Code)



ThemeParser
public ThemeParser(TokenBuffer tokenBuf)(Code)



ThemeParser
protected ThemeParser(TokenStream lexer, int k)(Code)



ThemeParser
public ThemeParser(TokenStream lexer)(Code)



ThemeParser
public ThemeParser(ParserSharedInputState state)(Code)




Method Detail
attribute
final public void attribute() throws RecognitionException, TokenStreamException(Code)



condition
final public void condition() throws RecognitionException, TokenStreamException(Code)



document
final public void document() throws RecognitionException, TokenStreamException(Code)



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

This main routine can be used to text the parser. It uses a dummy properties object with one property, "test" set to "myest". The string taken from standard in is parsed and output.


Parameters:
  args - this parameter is reserved for future use.



math
final public void math() throws RecognitionException, TokenStreamException(Code)



parse
public static String parse(String parseString, Properties properties, String name) throws TokenStreamException, RecognitionException(Code)

Parse the given string using the properties provided.


Parameters:
  parseString - the string containing PROPERTY, ATTRIBUTE andIFPROPERTY tokens to parse.
Parameters:
  properties - all values of properties to be replaced in theparseString.
Parameters:
  name - the name of the html section for error messages.
exception:
  TokenStreamException - thrown by the lexer.
exception:
  RecognitionException - thrown by the parser.



property
final public void property() throws RecognitionException, TokenStreamException(Code)



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