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


java.lang.Object
   gnu.text.SourceMessages

SourceMessages
public class SourceMessages implements SourceLocator(Code)
A collection of (zero or more) SourceErrors. Has a "current line number" which clients can use as the default line number, or clients can explicitly provide a line number. Does not handle localization of messages.


Field Summary
 intcurrent_column
    
 Stringcurrent_filename
    
 intcurrent_line
    
public static  booleandebugStackTraceOnError
     If true, print out stack trace with any error.
public static  booleandebugStackTraceOnWarning
     If true, print out stack trace with any warning.
 SourceErrorfirstError
     The first error or warning in a linked list.
 SourceErrorlastError
     The last error or warning in a linked list.
 SourceErrorlastPrevFilename
    
 SourceLocatorlocator
    
public  booleansortMessages
     True if we should sort messages by line number.


Method Summary
public  booleancheckErrors(java.io.PrintWriter out, int max)
     Checks if an error was seen; if so, prints and clears the messages.
public  booleancheckErrors(java.io.PrintStream out, int max)
     Checks if an error was seen; if so, prints and clears the messages.
public  voidclear()
     Clear the contained errors and warnings.
public  voidclearErrors()
     Clear the error count (only).
public  voiderror(SourceError error)
     Link in an error.
public  voiderror(char severity, String filename, int line, int column, String message)
     Record a new error.
public  voiderror(char severity, SourceLocator location, String message)
    
public  voiderror(char severity, String filename, int line, int column, String message, String code)
    
public  voiderror(char severity, SourceLocator location, String message, String code)
    
public  voiderror(char severity, String message)
     Record a new error at the current default source file location.
public  voiderror(char severity, String message, String code)
    
final public  intgetColumnNumber()
     The default column number to use for a new error.
public  intgetErrorCount()
     Get the number of errors (not counting warnings).
public  SourceErrorgetErrors()
    
final public  StringgetFileName()
     The default filename to use for a new error.
final public  intgetLineNumber()
     The default line number to use for a new error.
public  StringgetPublicId()
    
public  StringgetSystemId()
    
public  booleanisStableSourceLocation()
    
public  voidprintAll(java.io.PrintStream out, int max)
     Print all the error messages to a PrintStream.
public  voidprintAll(java.io.PrintWriter out, int max)
     Print all the error messages to a PrintWriter.
public  booleanseenErrors()
     Return true iff errors (not warnings) have been seen.
public  booleanseenErrorsOrWarnings()
    
public  voidsetColumn(int column)
     Set the default column number to use for a new error.
public  voidsetFile(String filename)
     Set the default filename to use for a new error.
public  voidsetLine(int line)
     Set the default line number to use for a new error.
public  voidsetLine(String filename, int line, int column)
     Set the default filename, line and column to use for a new error.
final public  voidsetLocation(SourceLocator locator)
     Copies the current position of locator.
final public  voidsetSourceLocator(SourceLocator locator)
     Links our location to the one give.
public  StringtoString(int max)
     Convert this to a String containing the recorded errors.

Field Detail
current_column
int current_column(Code)



current_filename
String current_filename(Code)



current_line
int current_line(Code)



debugStackTraceOnError
public static boolean debugStackTraceOnError(Code)
If true, print out stack trace with any error.



debugStackTraceOnWarning
public static boolean debugStackTraceOnWarning(Code)
If true, print out stack trace with any warning.



firstError
SourceError firstError(Code)
The first error or warning in a linked list.



lastError
SourceError lastError(Code)
The last error or warning in a linked list.



lastPrevFilename
SourceError lastPrevFilename(Code)



locator
SourceLocator locator(Code)



sortMessages
public boolean sortMessages(Code)
True if we should sort messages by line number.





Method Detail
checkErrors
public boolean checkErrors(java.io.PrintWriter out, int max)(Code)
Checks if an error was seen; if so, prints and clears the messages.
Parameters:
  out - where to write the error message to
Parameters:
  max - maximum number of messages to print (can be 0)



checkErrors
public boolean checkErrors(java.io.PrintStream out, int max)(Code)
Checks if an error was seen; if so, prints and clears the messages.
Parameters:
  out - where to write the error message to
Parameters:
  max - maximum number of messages to print (can be 0)



clear
public void clear()(Code)
Clear the contained errors and warnings.



clearErrors
public void clearErrors()(Code)
Clear the error count (only).



error
public void error(SourceError error)(Code)
Link in an error.



error
public void error(char severity, String filename, int line, int column, String message)(Code)
Record a new error.
Parameters:
  severity - is the seriousness of the error- one of 'w' (for warning), 'e' (for error), or 'f' (for fatal error)
Parameters:
  filename - the name or URL of the file containing the error
Parameters:
  line - the (1-origin) line number or 0 if unknown
Parameters:
  column - the (1-origin) column number or 0 if unknown
Parameters:
  message - the error message



error
public void error(char severity, SourceLocator location, String message)(Code)



error
public void error(char severity, String filename, int line, int column, String message, String code)(Code)



error
public void error(char severity, SourceLocator location, String message, String code)(Code)



error
public void error(char severity, String message)(Code)
Record a new error at the current default source file location.
Parameters:
  severity - is the seriousness of the error- one of 'w' (for warning), 'e' (for error), or 'f' (for fatal error)
Parameters:
  message - the error message



error
public void error(char severity, String message, String code)(Code)



getColumnNumber
final public int getColumnNumber()(Code)
The default column number to use for a new error.



getErrorCount
public int getErrorCount()(Code)
Get the number of errors (not counting warnings).



getErrors
public SourceError getErrors()(Code)



getFileName
final public String getFileName()(Code)
The default filename to use for a new error.



getLineNumber
final public int getLineNumber()(Code)
The default line number to use for a new error.



getPublicId
public String getPublicId()(Code)



getSystemId
public String getSystemId()(Code)



isStableSourceLocation
public boolean isStableSourceLocation()(Code)



printAll
public void printAll(java.io.PrintStream out, int max)(Code)
Print all the error messages to a PrintStream.



printAll
public void printAll(java.io.PrintWriter out, int max)(Code)
Print all the error messages to a PrintWriter.



seenErrors
public boolean seenErrors()(Code)
Return true iff errors (not warnings) have been seen.



seenErrorsOrWarnings
public boolean seenErrorsOrWarnings()(Code)



setColumn
public void setColumn(int column)(Code)
Set the default column number to use for a new error.



setFile
public void setFile(String filename)(Code)
Set the default filename to use for a new error.



setLine
public void setLine(int line)(Code)
Set the default line number to use for a new error.



setLine
public void setLine(String filename, int line, int column)(Code)
Set the default filename, line and column to use for a new error.



setLocation
final public void setLocation(SourceLocator locator)(Code)
Copies the current position of locator.



setSourceLocator
final public void setSourceLocator(SourceLocator locator)(Code)
Links our location to the one give.



toString
public String toString(int max)(Code)
Convert this to a String containing the recorded errors.
Parameters:
  max - the maximum number of error error to list a String with one '\n'-terminated line per recorded error



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.