Java Doc for HtmlPrinter.java in  » Parser » Rats-Parser-Generators » xtc » 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 » Parser » Rats Parser Generators » xtc.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


xtc.parser.PrettyPrinter
   xtc.parser.HtmlPrinter

HtmlPrinter
public class HtmlPrinter extends PrettyPrinter (Code)
A grammar pretty printer producing HTML.
author:
   Robert Grimm
version:
   $Revision: 1.27 $


Field Summary
final protected  Analyzeranalyzer
     The analyzer utility.
protected  booleanisGrammar
     The flag for whether we are processing a grammar or single module.
protected  intpNumber
     The number of the current production.
final protected  Runtimeruntime
     The runtime.

Constructor Summary
public  HtmlPrinter(Runtime runtime, Analyzer analyzer, AST ast, boolean verbose)
     Create a new HTML printer.

Method Summary
protected  voidenter(Production p)
    
protected  voidexit(Production p)
    
protected  voidopen(String name)
     Create a printer for the specified file.
protected  voidprint(Module m)
     Actually print the specified module.
protected  voidprint(ModuleName name, boolean resolved)
     Print a linked version of the specified module name.
protected  voidprint(ModuleDependency dep, String name)
    
protected  voidprint(String s)
    
protected  voidprintDocumentation(Module m)
    
protected  voidprintOption(Module m)
    
protected  intregexEscapes()
    
protected  intstringEscapes()
    
public  voidvisit(Grammar g)
    
public  voidvisit(Module m)
    
public  voidvisit(SequenceName n)
    
public  voidvisit(NonTerminal nt)
    
public  voidvisit(StringValue v)
    
public  voidvisit(TokenValue v)
    

Field Detail
analyzer
final protected Analyzer analyzer(Code)
The analyzer utility.



isGrammar
protected boolean isGrammar(Code)
The flag for whether we are processing a grammar or single module.



pNumber
protected int pNumber(Code)
The number of the current production.



runtime
final protected Runtime runtime(Code)
The runtime.




Constructor Detail
HtmlPrinter
public HtmlPrinter(Runtime runtime, Analyzer analyzer, AST ast, boolean verbose)(Code)
Create a new HTML printer.
Parameters:
  runtime - The runtime.
Parameters:
  analyzer - The analyzer.
Parameters:
  ast - The type operations.
Parameters:
  verbose - The verbose flag.




Method Detail
enter
protected void enter(Production p)(Code)



exit
protected void exit(Production p)(Code)



open
protected void open(String name) throws IOException(Code)
Create a printer for the specified file. This method initializes this class' HtmlPrinter.printer printer to a printer writing to the file with the specified name in the runtime's output directory.
Parameters:
  name - The file name.



print
protected void print(Module m)(Code)
Actually print the specified module.
Parameters:
  m - The module to print.



print
protected void print(ModuleName name, boolean resolved)(Code)
Print a linked version of the specified module name.
Parameters:
  name - The module name.
Parameters:
  resolved - The flag for whether the name can be resolved.



print
protected void print(ModuleDependency dep, String name)(Code)



print
protected void print(String s)(Code)



printDocumentation
protected void printDocumentation(Module m)(Code)



printOption
protected void printOption(Module m)(Code)



regexEscapes
protected int regexEscapes()(Code)



stringEscapes
protected int stringEscapes()(Code)



visit
public void visit(Grammar g)(Code)



visit
public void visit(Module m)(Code)



visit
public void visit(SequenceName n)(Code)



visit
public void visit(NonTerminal nt)(Code)



visit
public void visit(StringValue v)(Code)



visit
public void visit(TokenValue v)(Code)



Fields inherited from xtc.parser.PrettyPrinter
final public static boolean MARK_CHOICE(Code)(Java Doc)
protected boolean newline(Code)(Java Doc)
protected boolean parenChoice(Code)(Java Doc)
protected boolean parenSequence(Code)(Java Doc)
final protected Printer printer(Code)(Java Doc)

Methods inherited from xtc.parser.PrettyPrinter
public void visit(Grammar g)(Code)(Java Doc)
public void visit(Production p)(Code)(Java Doc)
public void visit(OrderedChoice c)(Code)(Java Doc)
public void visit(Repetition r)(Code)(Java Doc)
public void visit(Option o)(Code)(Java Doc)
public void visit(Sequence s)(Code)(Java Doc)
public void visit(FollowedBy p)(Code)(Java Doc)
public void visit(NotFollowedBy p)(Code)(Java Doc)
public void visit(SemanticPredicate p)(Code)(Java Doc)
public void visit(Binding b)(Code)(Java Doc)
public void visit(StringMatch m)(Code)(Java Doc)
public void visit(NonTerminal nt)(Code)(Java Doc)
public void visit(StringLiteral l)(Code)(Java Doc)
public void visit(AnyChar a)(Code)(Java Doc)
public void visit(CharLiteral l)(Code)(Java Doc)
public void visit(CharRange r)(Code)(Java Doc)
public void visit(CharClass c)(Code)(Java Doc)
public void visit(CharCase c)(Code)(Java Doc)
public void visit(CharSwitch s)(Code)(Java Doc)
public void visit(Action a)(Code)(Java Doc)
public void visit(NullValue v)(Code)(Java Doc)
public void visit(StringValue v)(Code)(Java Doc)
public void visit(TextValue v)(Code)(Java Doc)
public void visit(EmptyListValue v)(Code)(Java Doc)
public void visit(SingletonListValue v)(Code)(Java Doc)
public void visit(ListValue v)(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.