Java Doc for Bark.java in  » 6.0-JDK-Modules-com.sun » tools » com » sun » tools » apt » util » 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 » 6.0 JDK Modules com.sun » tools » com.sun.tools.apt.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.javac.util.Log
      com.sun.tools.apt.util.Bark

Bark
public class Bark extends Log (Code)
A subtype of Log for use in APT.

This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.



Field Summary
final protected static  Context.Key<Bark>barkKey
     The context key for the bark.

Constructor Summary
protected  Bark(Context context)
     Creates a Bark.

Method Summary
public  voidaptError(String key, Object... args)
     Report an error.
public  voidaptError(int pos, String key, Object... args)
     Report an error, unless another error was already reported at same source position.
public  voidaptNote(String key, Object... args)
     Report a note, unless suppressed by the -nowarn option.
public  voidaptNote(int pos, String key, Object... args)
     Report a note, unless suppressed by the -nowarn option.
public  voidaptWarning(String key, Object... args)
     Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
public  voidaptWarning(int pos, String key, Object... args)
     Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
public static  Barkinstance(Context context)
     Get the Bark instance for this context.
public static  voidpreRegister(Context context)
     Preregisters factories to create and use a Bark object for use as both a Log and a Bark.
public  voidreport(JCDiagnostic diagnostic)
     Report a diagnostic if they are not currently being ignored.
public  booleansetDiagnosticsIgnored(boolean b)
     Sets a flag indicating whether or not to ignore all diagnostics. When ignored, they are not reported to the output writers, not are they counted in the various counters.
Parameters:
  b - If true, subsequent diagnostics will be ignored.

Field Detail
barkKey
final protected static Context.Key<Bark> barkKey(Code)
The context key for the bark.




Constructor Detail
Bark
protected Bark(Context context)(Code)
Creates a Bark.




Method Detail
aptError
public void aptError(String key, Object... args)(Code)
Report an error.
Parameters:
  key - The key for the localized error message.
Parameters:
  args - Fields of the error message.



aptError
public void aptError(int pos, String key, Object... args)(Code)
Report an error, unless another error was already reported at same source position.
Parameters:
  pos - The source position at which to report the error.
Parameters:
  key - The key for the localized error message.
Parameters:
  args - Fields of the error message.



aptNote
public void aptNote(String key, Object... args)(Code)
Report a note, unless suppressed by the -nowarn option.
Parameters:
  key - The key for the localized note message.
Parameters:
  args - Fields of the note message.



aptNote
public void aptNote(int pos, String key, Object... args)(Code)
Report a note, unless suppressed by the -nowarn option.
Parameters:
  pos - The source position at which to report the note.
Parameters:
  key - The key for the localized note message.
Parameters:
  args - Fields of the note message.



aptWarning
public void aptWarning(String key, Object... args)(Code)
Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
Parameters:
  key - The key for the localized warning message.
Parameters:
  args - Fields of the warning message.



aptWarning
public void aptWarning(int pos, String key, Object... args)(Code)
Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
Parameters:
  pos - The source position at which to report the warning.
Parameters:
  key - The key for the localized warning message.
Parameters:
  args - Fields of the warning message.



instance
public static Bark instance(Context context)(Code)
Get the Bark instance for this context.



preRegister
public static void preRegister(Context context)(Code)
Preregisters factories to create and use a Bark object for use as both a Log and a Bark.



report
public void report(JCDiagnostic diagnostic)(Code)
Report a diagnostic if they are not currently being ignored.



setDiagnosticsIgnored
public boolean setDiagnosticsIgnored(boolean b)(Code)
Sets a flag indicating whether or not to ignore all diagnostics. When ignored, they are not reported to the output writers, not are they counted in the various counters.
Parameters:
  b - If true, subsequent diagnostics will be ignored. the previous state of the flag



Fields inherited from com.sun.tools.javac.util.Log
final public int MaxErrors(Code)(Java Doc)
final public int MaxWarnings(Code)(Java Doc)
protected DiagnosticListener<? super JavaFileObject> diagListener(Code)(Java Doc)
public boolean dumpOnError(Code)(Java Doc)
public boolean emitWarnings(Code)(Java Doc)
final public PrintWriter errWriter(Code)(Java Doc)
final public static Context.Key<Log> logKey(Code)(Java Doc)
public boolean multipleErrors(Code)(Java Doc)
public int nerrors(Code)(Java Doc)
final public PrintWriter noticeWriter(Code)(Java Doc)
public int nwarnings(Code)(Java Doc)
final public static Context.Key<PrintWriter> outKey(Code)(Java Doc)
public boolean promptOnError(Code)(Java Doc)
protected JCDiagnostic.DiagnosticSource source(Code)(Java Doc)
final public PrintWriter warnWriter(Code)(Java Doc)

Methods inherited from com.sun.tools.javac.util.Log
public JavaFileObject currentSource()(Code)(Java Doc)
public void error(String key, Object... args)(Code)(Java Doc)
public void error(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc)
public void error(int pos, String key, Object... args)(Code)(Java Doc)
public void flush()(Code)(Java Doc)
public static String format(String fmt, Object... args)(Code)(Java Doc)
protected char[] getBuf()(Code)(Java Doc)
protected static char[] getCharContent(JavaFileObject fileObject) throws IOException(Code)(Java Doc)
protected int getColumnNumber(int pos)(Code)(Java Doc)
protected int getLineNumber(int pos)(Code)(Java Doc)
public static String getLocalizedString(String key, Object... args)(Code)(Java Doc)
protected PrintWriter getWriterForDiagnosticType(DiagnosticType dt)(Code)(Java Doc)
public boolean hasDiagnosticListener()(Code)(Java Doc)
public static Log instance(Context context)(Code)(Java Doc)
public void mandatoryNote(JavaFileObject file, String key, Object... args)(Code)(Java Doc)
public void mandatoryWarning(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc)
public void note(String key, Object... args)(Code)(Java Doc)
public void note(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc)
public void note(int pos, String key, Object... args)(Code)(Java Doc)
public static void printLines(PrintWriter writer, String msg)(Code)(Java Doc)
public void prompt()(Code)(Java Doc)
public void rawError(int pos, String msg)(Code)(Java Doc)
public void rawWarning(int pos, String msg)(Code)(Java Doc)
public void report(JCDiagnostic diagnostic)(Code)(Java Doc)
protected void setBuf(char[] newBuf)(Code)(Java Doc)
public void setEndPosTable(JavaFileObject name, Map<JCTree, Integer> table)(Code)(Java Doc)
protected boolean shouldReport(JavaFileObject file, int pos)(Code)(Java Doc)
public void strictWarning(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc)
public JavaFileObject useSource(JavaFileObject name)(Code)(Java Doc)
public void warning(String key, Object... args)(Code)(Java Doc)
public void warning(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc)
public void warning(int pos, String key, Object... args)(Code)(Java Doc)
protected void writeDiagnostic(JCDiagnostic diag)(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.