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


java.lang.Object
   xtc.tree.Utility
      xtc.tree.Printer
         xtc.tree.LineupPrinter

LineupPrinter
public class LineupPrinter extends Printer (Code)
A printer that guarantees that each Node is printed at the exact file, line, and column specified by its location. Where necessary, this printer prints line markers (similar to those used by the C preprocessor:
# line "file"
Reproducing exact source locations helps downstream tools track symbolic information for error messages, debugging, and exception backtraces. Even though this printer makes a best effort to print nodes without locations nicely, experience shows that the generated code is usually harder to read for humans (less "pretty") than with the superclass xtc.tree.Printer.


Field Summary
protected  booleanblankLine
     Is the current line blank? If yes, the printer delays any indentation until it encounters the first non-blank character on the line.
protected  booleancurrentNodeHasLocation
    
protected  StringlastFile
     File name specified by the last node that had a location.
protected  longlastLine
     Line number specified by the last node that had a location.
protected  StringmarkedFile
     File name specified by the last emitted line marker.
protected  longmarkedLine
     Line number specified by the last emitted line marker.
protected  longmarkedPhysical
     Line number in the actual output after the last emitted line marker.
protected  booleanshowFilePaths
    

Constructor Summary
public  LineupPrinter(OutputStream out, boolean showFilePaths)
    
public  LineupPrinter(PrintWriter out, boolean showFilePaths)
    
public  LineupPrinter(Writer out, boolean showFilePaths)
    

Method Summary
public  Printeralign(int desiredColumn)
    
protected  longeffectiveLine()
     Current line in the output adjusted for line markers.
protected  voidendBlank()
     If blankLine is true, print any deferred line breaks and blank characters.
protected  voidensureLocation(Node n)
     If the given node has a location, ensure that the output file, line, and column is at exactly that location, by emitting some combination of line markers, line breaks, and blanks.
public  Printerindent()
    
public  PrinterindentLess()
    
public  PrinterindentMore()
    
public  Printerp(Attribute a)
    
public  Printerp(char c)
    
public  Printerp(Comment c)
    
public  Printerp(double d)
    
public  Printerp(int i)
    
public  Printerp(long l)
    
public  Printerp(Node n)
    
public  Printerp(String s)
    
public  Printerpln()
    
public  Printerpln(char c)
    
public  Printerpln(double d)
    
public  Printerpln(int i)
    
public  Printerpln(long l)
    
public  Printerpln(String s)
    
public  voidprintLineMarker(String file, long line)
    
protected  PrinterprintNode(Node n)
    
public  Printerreset()
    
public  Printersep()
    

Field Detail
blankLine
protected boolean blankLine(Code)
Is the current line blank? If yes, the printer delays any indentation until it encounters the first non-blank character on the line.



currentNodeHasLocation
protected boolean currentNodeHasLocation(Code)
Does the node currently being visited have a location?



lastFile
protected String lastFile(Code)
File name specified by the last node that had a location.



lastLine
protected long lastLine(Code)
Line number specified by the last node that had a location.



markedFile
protected String markedFile(Code)
File name specified by the last emitted line marker.



markedLine
protected long markedLine(Code)
Line number specified by the last emitted line marker.



markedPhysical
protected long markedPhysical(Code)
Line number in the actual output after the last emitted line marker.



showFilePaths
protected boolean showFilePaths(Code)




Constructor Detail
LineupPrinter
public LineupPrinter(OutputStream out, boolean showFilePaths)(Code)



LineupPrinter
public LineupPrinter(PrintWriter out, boolean showFilePaths)(Code)



LineupPrinter
public LineupPrinter(Writer out, boolean showFilePaths)(Code)




Method Detail
align
public Printer align(int desiredColumn)(Code)



effectiveLine
protected long effectiveLine()(Code)
Current line in the output adjusted for line markers.



endBlank
protected void endBlank()(Code)
If blankLine is true, print any deferred line breaks and blank characters.



ensureLocation
protected void ensureLocation(Node n)(Code)
If the given node has a location, ensure that the output file, line, and column is at exactly that location, by emitting some combination of line markers, line breaks, and blanks.



indent
public Printer indent()(Code)



indentLess
public Printer indentLess()(Code)



indentMore
public Printer indentMore()(Code)



p
public Printer p(Attribute a)(Code)



p
public Printer p(char c)(Code)



p
public Printer p(Comment c)(Code)



p
public Printer p(double d)(Code)



p
public Printer p(int i)(Code)



p
public Printer p(long l)(Code)



p
public Printer p(Node n)(Code)



p
public Printer p(String s)(Code)



pln
public Printer pln()(Code)



pln
public Printer pln(char c)(Code)



pln
public Printer pln(double d)(Code)



pln
public Printer pln(int i)(Code)



pln
public Printer pln(long l)(Code)



pln
public Printer pln(String s)(Code)



printLineMarker
public void printLineMarker(String file, long line)(Code)



printNode
protected Printer printNode(Node n)(Code)



reset
public Printer reset()(Code)



sep
public Printer sep()(Code)



Fields inherited from xtc.tree.Printer
final public static int SEPARATOR_LENGTH(Code)(Java Doc)
protected int indent(Code)(Java Doc)
protected PrintWriter out(Code)(Java Doc)
protected int printed(Code)(Java Doc)

Methods inherited from xtc.tree.Printer
public Printer align(int printed, int alignment)(Code)(Java Doc)
public Printer align(int alignment)(Code)(Java Doc)
public Printer decr()(Code)(Java Doc)
public Printer escape(char c, int flags)(Code)(Java Doc)
public Printer escape(String s, int flags)(Code)(Java Doc)
public Printer incr()(Code)(Java Doc)
public Printer indent()(Code)(Java Doc)
public Printer indentLess()(Code)(Java Doc)
public Printer loc(Node node)(Code)(Java Doc)
public Printer p(char c)(Code)(Java Doc)
public Printer p(int i)(Code)(Java Doc)
public Printer p(String s)(Code)(Java Doc)
public Printer p(Node node)(Code)(Java Doc)
public Printer p(Collection coll)(Code)(Java Doc)
public Printer p(Collection coll, String before, String sep)(Code)(Java Doc)
public Printer pln(char c)(Code)(Java Doc)
public Printer pln(int i)(Code)(Java Doc)
public Printer pln(String s)(Code)(Java Doc)
public Printer pln()(Code)(Java Doc)
public Printer sep()(Code)(Java Doc)

Fields inherited from xtc.tree.Utility
Visitor visitor(Code)(Java Doc)

Methods inherited from xtc.tree.Utility
public void register(Visitor visitor)(Code)(Java Doc)
public Visitor visitor()(Code)(Java Doc)

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.