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


java.lang.Object
   com.sun.tools.javac.util.JCDiagnostic

JCDiagnostic
public class JCDiagnostic implements Diagnostic<JavaFileObject>(Code)
An abstraction of a diagnostic message generated by the compiler.

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.


Inner Class :public static class Factory
Inner Class :public interface DiagnosticSource
Inner Class :public enum DiagnosticType
Inner Class :public static interface DiagnosticPosition
Inner Class :public static class SimpleDiagnosticPosition implements DiagnosticPosition


Constructor Summary
protected  JCDiagnostic(Messages messages, DiagnosticType dt, boolean mandatory, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args)
     Create a diagnostic object.

Method Summary
public static  JCDiagnosticfragment(String key, Object... args)
    
public  Object[]getArgs()
     Get the arguments to be included in the text of the diagnostic.
public  StringgetCode()
    
public  longgetColumnNumber()
     Get the column number within the line of source referred to by this diagnostic.
public  DiagnosticSourcegetDiagnosticSource()
     Get the source referred to by this diagnostic.
public  longgetEndPosition()
    
protected  intgetIntEndPosition()
    
protected  intgetIntPosition()
    
protected  intgetIntStartPosition()
    
public  Diagnostic.KindgetKind()
    
public  longgetLineNumber()
     Get the line number within the source referred to by this diagnostic.
public  StringgetMessage(Locale locale)
    
public  longgetPosition()
    
public  StringgetPrefix()
     Get the prefix string associated with this type of diagnostic.
public  StringgetPrefix(DiagnosticType dt)
     Get the prefix string associated with a particular type of diagnostic.
public  JavaFileObjectgetSource()
     Get the name of the source file referred to by this diagnostic.
public  StringgetSourceName()
     Get the name of the source file referred to by this diagnostic.
public  longgetStartPosition()
    
public  DiagnosticTypegetType()
     Get the type of this diagnostic.
public  booleanisMandatory()
     Check whether or not this diagnostic is required to be shown.
public  StringtoString()
     Return the standard presentation of this diagnostic.


Constructor Detail
JCDiagnostic
protected JCDiagnostic(Messages messages, DiagnosticType dt, boolean mandatory, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args)(Code)
Create a diagnostic object.
Parameters:
  messages - the resource for localized messages
Parameters:
  dt - the type of diagnostic
Parameters:
  name - the name of the source file, or null if none.
Parameters:
  pos - the character offset within the source file, if given.
Parameters:
  key - a resource key to identify the text of the diagnostic
Parameters:
  args - arguments to be included in the text of the diagnostic




Method Detail
fragment
public static JCDiagnostic fragment(String key, Object... args)(Code)
Create a fragment diagnostic, for use as an argument in other diagnostics
Parameters:
  key - The key for the localized error message.
Parameters:
  args - Fields of the error message.



getArgs
public Object[] getArgs()(Code)
Get the arguments to be included in the text of the diagnostic. the arguments to be included in the text of the diagnostic



getCode
public String getCode()(Code)



getColumnNumber
public long getColumnNumber()(Code)
Get the column number within the line of source referred to by this diagnostic. the column number within the line of source referred to by this diagnostic



getDiagnosticSource
public DiagnosticSource getDiagnosticSource()(Code)
Get the source referred to by this diagnostic. the source referred to with this diagnostic, or null if none



getEndPosition
public long getEndPosition()(Code)



getIntEndPosition
protected int getIntEndPosition()(Code)



getIntPosition
protected int getIntPosition()(Code)



getIntStartPosition
protected int getIntStartPosition()(Code)



getKind
public Diagnostic.Kind getKind()(Code)



getLineNumber
public long getLineNumber()(Code)
Get the line number within the source referred to by this diagnostic. the line number within the source referred to by this diagnostic



getMessage
public String getMessage(Locale locale)(Code)



getPosition
public long getPosition()(Code)



getPrefix
public String getPrefix()(Code)
Get the prefix string associated with this type of diagnostic. the prefix string associated with this type of diagnostic



getPrefix
public String getPrefix(DiagnosticType dt)(Code)
Get the prefix string associated with a particular type of diagnostic. the prefix string associated with a particular type of diagnostic



getSource
public JavaFileObject getSource()(Code)
Get the name of the source file referred to by this diagnostic. the name of the source referred to with this diagnostic, or null if none



getSourceName
public String getSourceName()(Code)
Get the name of the source file referred to by this diagnostic. the name of the source referred to with this diagnostic, or null if none



getStartPosition
public long getStartPosition()(Code)



getType
public DiagnosticType getType()(Code)
Get the type of this diagnostic. the type of this diagnostic



isMandatory
public boolean isMandatory()(Code)
Check whether or not this diagnostic is required to be shown. true if this diagnostic is required to be shown.



toString
public String toString()(Code)
Return the standard presentation of this diagnostic.



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.