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


java.lang.Object
   com.sun.tools.javadoc.DocEnv

DocEnv
public class DocEnv (Code)
Holds the environment for a run of javadoc. Holds only the information needed throughout the run and not the compiler info that could be GC'ed or ported.
since:
   1.4
author:
   Robert Field
author:
   Neal Gafter (rewrite)
author:
   Scott Seligman (generics)


Field Summary
 Attrattr
     The compiler's attribution phase (needed to evaluate constant initializers).
 booleanbreakiterator
     True if we are using a sentence BreakIterator.
 Checkchk
    
 booleandocClasses
    
final protected static  Context.Key<DocEnv>docEnvKey
    
 DocLocaledoclocale
    
 JavadocEnterenter
     Javadoc's own version of the compiler's enter phase.
final  SymbolexternalizableSym
    
 booleanlegacyDoclet
    
 Name.Tablenames
     The name table.
 booleanquiet
     True if we do not want to print any notifications at all.
 JavadocClassReaderreader
     Referenced directly in RootDocImpl.
 ModifierFiltershowAccess
     Access filter (public, protected, ...).
 Symtabsyms
     Predefined symbols known to the compiler.
 Typestypes
    


Method Summary
public  voiderror(DocImpl doc, String key)
     Print error message, increment error count.
public  voiderror(SourcePosition pos, String key)
     Print error message, increment error count.
public  voiderror(DocImpl doc, String key, String a1)
     Print error message, increment error count.
public  voiderror(DocImpl doc, String key, String a1, String a2)
     Print error message, increment error count.
public  voiderror(DocImpl doc, String key, String a1, String a2, String a3)
     Print error message, increment error count.
public  voidexit()
     Exit, reporting errors and warnings.
public  AnnotationTypeElementDocImplgetAnnotationTypeElementDoc(MethodSymbol meth)
     Return the AnnotationTypeElementDoc for a MethodSymbol.
 ClassDocImplgetClassDoc(ClassSymbol clazz)
     Return the ClassDoc (or a subtype) of this class symbol.
 ClassSymbolgetClassSymbol(String name)
     Retrieve class symbol by fully-qualified name.
public  ConstructorDocImplgetConstructorDoc(MethodSymbol meth)
     Return the ConstructorDoc for a MethodSymbol.
public  StringgetEncoding()
     Get the encoding.
 FieldDocImplgetFieldDoc(VarSymbol var)
     Return the FieldDoc of this var symbol.
public  MethodDocImplgetMethodDoc(MethodSymbol meth)
     Return the MethodDoc for a MethodSymbol.
public  PackageDocImplgetPackageDoc(PackageSymbol pack)
     Return the PackageDoc of this package symbol.
 ParameterizedTypeImplgetParameterizedType(ClassType t)
     Return the ParameterizedType of this instantiation.
public static  DocEnvinstance(Context context)
    
protected  booleanisVisible(ClassSymbol sym)
     Check the visibility if this is an nested class.
public  ClassDocImplloadClass(String name)
     Load ClassDoc by qualified name.
public  ClassDocImpllookupClass(String name)
     Look up ClassDoc by qualified name.
public  PackageDocImpllookupPackage(String name)
     Look up PackageDoc by qualified name.
 voidmakeAnnotationTypeElementDoc(MethodSymbol meth, String docComment, JCMethodDecl tree, Position.LineMap lineMap)
     Create the AnnotationTypeElementDoc for a MethodSymbol.
 voidmakeClassDoc(ClassSymbol clazz, String docComment, JCClassDecl tree, Position.LineMap lineMap)
     Create the ClassDoc (or a subtype) for a class symbol.
 voidmakeConstructorDoc(MethodSymbol meth, String docComment, JCMethodDecl tree, Position.LineMap lineMap)
     Create the ConstructorDoc for a MethodSymbol.
 voidmakeFieldDoc(VarSymbol var, String docComment, JCVariableDecl tree, Position.LineMap lineMap)
     Create a FieldDoc for a var symbol.
 voidmakeMethodDoc(MethodSymbol meth, String docComment, JCMethodDecl tree, Position.LineMap lineMap)
     Create a MethodDoc for this MethodSymbol.
 voidmakePackageDoc(PackageSymbol pack, String docComment, JCCompilationUnit tree)
     Create the PackageDoc (or a subtype) for a package symbol.
public  voidnotice(String key)
     Print a message.
public  voidnotice(String key, String a1)
     Print a message.
public  voidnotice(String key, String a1, String a2)
     Print a message.
public  voidnotice(String key, String a1, String a2, String a3)
     Print a message.
public  voidprintError(String msg)
     Print error message, increment error count.
public  voidprintError(SourcePosition pos, String msg)
     Print error message, increment error count.
public  voidprintNotice(String msg)
     Print a message.
public  voidprintNotice(SourcePosition pos, String msg)
     Print a message.
public  voidprintWarning(String msg)
     Print warning message, increment warning count.
public  voidprintWarning(SourcePosition pos, String msg)
     Print warning message, increment warning count.
public  voidsetEncoding(String encoding)
     Set the encoding.
public  voidsetLocale(String localeName)
     Set the locale.
public  voidsetSilent(boolean silent)
    
public  booleanshouldDocument(VarSymbol sym)
     Check whether this member should be documented.
public  booleanshouldDocument(MethodSymbol sym)
     Check whether this member should be documented.
public  booleanshouldDocument(ClassSymbol sym)
     check whether this class should be documented.
static  inttranslateModifiers(long flags)
     Convert modifier bits from private coding used by the compiler to that of java.lang.reflect.Modifier.
public  voidwarning(DocImpl doc, String key)
     Print warning message, increment warning count.
public  voidwarning(DocImpl doc, String key, String a1)
     Print warning message, increment warning count.
public  voidwarning(DocImpl doc, String key, String a1, String a2)
     Print warning message, increment warning count.
public  voidwarning(DocImpl doc, String key, String a1, String a2, String a3)
     Print warning message, increment warning count.
public  voidwarning(DocImpl doc, String key, String a1, String a2, String a3, String a4)
     Print warning message, increment warning count.

Field Detail
attr
Attr attr(Code)
The compiler's attribution phase (needed to evaluate constant initializers).



breakiterator
boolean breakiterator(Code)
True if we are using a sentence BreakIterator.



chk
Check chk(Code)



docClasses
boolean docClasses(Code)
Allow documenting from class files?



docEnvKey
final protected static Context.Key<DocEnv> docEnvKey(Code)



doclocale
DocLocale doclocale(Code)



enter
JavadocEnter enter(Code)
Javadoc's own version of the compiler's enter phase.



externalizableSym
final Symbol externalizableSym(Code)



legacyDoclet
boolean legacyDoclet(Code)
Does the doclet only expect pre-1.5 doclet API?



names
Name.Table names(Code)
The name table.



quiet
boolean quiet(Code)
True if we do not want to print any notifications at all.



reader
JavadocClassReader reader(Code)
Referenced directly in RootDocImpl.



showAccess
ModifierFilter showAccess(Code)
Access filter (public, protected, ...).



syms
Symtab syms(Code)
Predefined symbols known to the compiler.



types
Types types(Code)





Method Detail
error
public void error(DocImpl doc, String key)(Code)
Print error message, increment error count.
Parameters:
  key - selects message from resource



error
public void error(SourcePosition pos, String key)(Code)
Print error message, increment error count.
Parameters:
  key - selects message from resource



error
public void error(DocImpl doc, String key, String a1)(Code)
Print error message, increment error count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument



error
public void error(DocImpl doc, String key, String a1, String a2)(Code)
Print error message, increment error count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument



error
public void error(DocImpl doc, String key, String a1, String a2, String a3)(Code)
Print error message, increment error count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument
Parameters:
  a3 - third argument



exit
public void exit()(Code)
Exit, reporting errors and warnings.



getAnnotationTypeElementDoc
public AnnotationTypeElementDocImpl getAnnotationTypeElementDoc(MethodSymbol meth)(Code)
Return the AnnotationTypeElementDoc for a MethodSymbol. Should be called only on symbols representing annotation type elements.



getClassDoc
ClassDocImpl getClassDoc(ClassSymbol clazz)(Code)
Return the ClassDoc (or a subtype) of this class symbol.



getClassSymbol
ClassSymbol getClassSymbol(String name)(Code)
Retrieve class symbol by fully-qualified name.



getConstructorDoc
public ConstructorDocImpl getConstructorDoc(MethodSymbol meth)(Code)
Return the ConstructorDoc for a MethodSymbol. Should be called only on symbols representing constructors.



getEncoding
public String getEncoding()(Code)
Get the encoding.



getFieldDoc
FieldDocImpl getFieldDoc(VarSymbol var)(Code)
Return the FieldDoc of this var symbol.



getMethodDoc
public MethodDocImpl getMethodDoc(MethodSymbol meth)(Code)
Return the MethodDoc for a MethodSymbol. Should be called only on symbols representing methods.



getPackageDoc
public PackageDocImpl getPackageDoc(PackageSymbol pack)(Code)
Return the PackageDoc of this package symbol.



getParameterizedType
ParameterizedTypeImpl getParameterizedType(ClassType t)(Code)
Return the ParameterizedType of this instantiation. // * ### Could use Type.sameTypeAs() instead of equality matching in hashmap // * ### to avoid some duplication.



instance
public static DocEnv instance(Context context)(Code)



isVisible
protected boolean isVisible(ClassSymbol sym)(Code)
Check the visibility if this is an nested class. if this is not a nested class, return true. if this is an static visible nested class, return true. if this is an visible nested class if the outer class is visible return true. else return false. IMPORTANT: This also allows, static nested classes to be defined inside an nested class, which is not allowed by the compiler. So such an test case will not reach upto this method itself, but if compiler allows it, then that will go through.



loadClass
public ClassDocImpl loadClass(String name)(Code)
Load ClassDoc by qualified name.



lookupClass
public ClassDocImpl lookupClass(String name)(Code)
Look up ClassDoc by qualified name.



lookupPackage
public PackageDocImpl lookupPackage(String name)(Code)
Look up PackageDoc by qualified name.



makeAnnotationTypeElementDoc
void makeAnnotationTypeElementDoc(MethodSymbol meth, String docComment, JCMethodDecl tree, Position.LineMap lineMap)(Code)
Create the AnnotationTypeElementDoc for a MethodSymbol. Should be called only on symbols representing annotation type elements.



makeClassDoc
void makeClassDoc(ClassSymbol clazz, String docComment, JCClassDecl tree, Position.LineMap lineMap)(Code)
Create the ClassDoc (or a subtype) for a class symbol.



makeConstructorDoc
void makeConstructorDoc(MethodSymbol meth, String docComment, JCMethodDecl tree, Position.LineMap lineMap)(Code)
Create the ConstructorDoc for a MethodSymbol. Should be called only on symbols representing constructors.



makeFieldDoc
void makeFieldDoc(VarSymbol var, String docComment, JCVariableDecl tree, Position.LineMap lineMap)(Code)
Create a FieldDoc for a var symbol.



makeMethodDoc
void makeMethodDoc(MethodSymbol meth, String docComment, JCMethodDecl tree, Position.LineMap lineMap)(Code)
Create a MethodDoc for this MethodSymbol. Should be called only on symbols representing methods.



makePackageDoc
void makePackageDoc(PackageSymbol pack, String docComment, JCCompilationUnit tree)(Code)
Create the PackageDoc (or a subtype) for a package symbol.



notice
public void notice(String key)(Code)
Print a message.
Parameters:
  key - selects message from resource



notice
public void notice(String key, String a1)(Code)
Print a message.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument



notice
public void notice(String key, String a1, String a2)(Code)
Print a message.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument



notice
public void notice(String key, String a1, String a2, String a3)(Code)
Print a message.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument
Parameters:
  a3 - third argument



printError
public void printError(String msg)(Code)
Print error message, increment error count.
Parameters:
  msg - message to print.



printError
public void printError(SourcePosition pos, String msg)(Code)
Print error message, increment error count.
Parameters:
  msg - message to print.



printNotice
public void printNotice(String msg)(Code)
Print a message.
Parameters:
  msg - message to print.



printNotice
public void printNotice(SourcePosition pos, String msg)(Code)
Print a message.
Parameters:
  msg - message to print.



printWarning
public void printWarning(String msg)(Code)
Print warning message, increment warning count.
Parameters:
  msg - message to print.



printWarning
public void printWarning(SourcePosition pos, String msg)(Code)
Print warning message, increment warning count.
Parameters:
  msg - message to print.



setEncoding
public void setEncoding(String encoding)(Code)
Set the encoding.



setLocale
public void setLocale(String localeName)(Code)
Set the locale.



setSilent
public void setSilent(boolean silent)(Code)



shouldDocument
public boolean shouldDocument(VarSymbol sym)(Code)
Check whether this member should be documented.



shouldDocument
public boolean shouldDocument(MethodSymbol sym)(Code)
Check whether this member should be documented.



shouldDocument
public boolean shouldDocument(ClassSymbol sym)(Code)
check whether this class should be documented.



translateModifiers
static int translateModifiers(long flags)(Code)
Convert modifier bits from private coding used by the compiler to that of java.lang.reflect.Modifier.



warning
public void warning(DocImpl doc, String key)(Code)
Print warning message, increment warning count.
Parameters:
  key - selects message from resource



warning
public void warning(DocImpl doc, String key, String a1)(Code)
Print warning message, increment warning count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument



warning
public void warning(DocImpl doc, String key, String a1, String a2)(Code)
Print warning message, increment warning count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument



warning
public void warning(DocImpl doc, String key, String a1, String a2, String a3)(Code)
Print warning message, increment warning count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument
Parameters:
  a3 - third argument



warning
public void warning(DocImpl doc, String key, String a1, String a2, String a3, String a4)(Code)
Print warning message, increment warning count.
Parameters:
  key - selects message from resource
Parameters:
  a1 - first argument
Parameters:
  a2 - second argument
Parameters:
  a3 - third argument



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.