Java Doc for ClassDocImpl.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.DocImpl
      com.sun.tools.javadoc.ProgramElementDocImpl
         com.sun.tools.javadoc.ClassDocImpl

All known Subclasses:   com.sun.tools.javadoc.AnnotationTypeDocImpl,
ClassDocImpl
public class ClassDocImpl extends ProgramElementDocImpl implements ClassDoc(Code)
Represents a java class and provides access to information about the class, the class' comment and tags, and the members of the class. A ClassDocImpl only exists if it was processed in this run of javadoc. References to classes which may or may not have been processed in this run are referred to using Type (which can be converted to ClassDocImpl, if possible).
See Also:   Type
since:
   1.2
author:
   Robert Field
author:
   Neal Gafter (rewrite)
author:
   Scott Seligman (generics, enums, annotations)


Field Summary
 booleanisIncluded
    
final protected  ClassSymboltsym
    
final public  ClassTypetype
    

Constructor Summary
public  ClassDocImpl(DocEnv env, ClassSymbol sym)
    
public  ClassDocImpl(DocEnv env, ClassSymbol sym, String documentation, JCClassDecl tree, Position.LineMap lineMap)
    

Method Summary
 voidaddAllClasses(ListBuffer<ClassDocImpl> l, boolean filtered)
     Adds all inner classes of this class, and their inner classes recursively, to the list l.
public  AnnotationTypeDocasAnnotationTypeDoc()
     Return null (unless overridden), as this is not an annotation type.
public  ClassDocasClassDoc()
     Return this type as a class, which it already is.
public  ParameterizedTypeasParameterizedType()
     Return null, as this is not a class instantiation.
public  TypeVariableasTypeVariable()
     Return null, as this is not a type variable.
public  WildcardTypeasWildcardType()
     Return null, as this is not a wildcard type.
static  StringclassToString(DocEnv env, ClassSymbol c, boolean full)
     Return the class name with any type parameters as a string.
public  ConstructorDoc[]constructors(boolean filter)
     Return constructors in class.
public  ConstructorDoc[]constructors()
     Return included constructors in class.
public  PackageDoccontainingPackage()
     Return the package that this class is contained in.
public  booleandefinesSerializableFields()
     Return true if Serializable fields are explicitly defined with the special class member serialPersistentFields.
public  Stringdimension()
     Return the type's dimension information.
public  FieldDoc[]enumConstants()
     Return the enum constants if this is an enum type.
public  FieldDoc[]fields(boolean filter)
     Return fields in class.
public  FieldDoc[]fields()
     Return included fields in class.
public  ClassDocfindClass(String className)
     Find a class within the context of this class.
public  ConstructorDocfindConstructor(String constrName, String[] paramTypes)
     Find constructor in this class.
Parameters:
  constrName - the unqualified name to search for.
Parameters:
  paramTypeArray - the array of Strings for constructor parameters.
public  FieldDocfindField(String fieldName)
     Find a field in this class scope. Search order: this class, outerclasses, interfaces, superclasses.
public  MethodDocImplfindMethod(String methodName, String[] paramTypes)
     Find a method in this class scope. Search order: this class, interfaces, superclasses, outerclasses. Note that this is not necessarily what the compiler would do!
Parameters:
  methodName - the unqualified name to search for.
Parameters:
  paramTypeArray - the array of Strings for method parameter types.
static  StringgetClassName(ClassSymbol c, boolean full)
     Return the class name as a string.
protected  ClassSymbolgetContainingClass()
    
protected  longgetFlags()
    
static  longgetFlags(ClassSymbol clazz)
    
public  ClassDoc[]importedClasses()
     Get the list of classes declared as imported.
public  PackageDoc[]importedPackages()
     Get the list of packages declared as imported.
public  ClassDoc[]innerClasses(boolean filter)
     Return inner classes within this class.
Parameters:
  filter - include only the included inner classes if filter==true.
public  ClassDoc[]innerClasses()
     Return included inner classes within this class. an array of ClassDocImpl for representing the visibleclasses defined in this class.
public  com.sun.javadoc.Type[]interfaceTypes()
     Return interfaces implemented by this class or interfaces extended by this interface.
public  ClassDoc[]interfaces()
     Return interfaces implemented by this class or interfaces extended by this interface.
public  booleanisAbstract()
    
static  booleanisAnnotationType(ClassSymbol clazz)
    
public  booleanisClass()
     Return true if this is a class, not an interface.
public  booleanisEnum()
     Return true if this is an enumeration.
public  booleanisError()
    
public  booleanisException()
    
public  booleanisExternalizable()
     Return true if this class implements java.io.Externalizable.
static  booleanisGeneric(ClassSymbol c)
    
public  booleanisIncluded()
     Return true if this class is included in the active set.
public  booleanisInterface()
     Return true if this is an interface, but not an annotation type.
public  booleanisOrdinaryClass()
     Return true if this is a ordinary class, not an enumeration, exception, an error, or an interface.
public  booleanisPrimitive()
     Return false, as this is not a primitive type.
 booleanisRuntimeException()
     Determine if a class is a RuntimeException.
public  booleanisSerializable()
     Return true if this class implements java.io.Serializable.
public  booleanisSynthetic()
     Returns true if this class was synthesized by the compiler.
public  booleanisThrowable()
    
public  MethodDoc[]methods(boolean filter)
     Return methods in class. This method is overridden by AnnotationTypeDocImpl.
Parameters:
  filter - include only the included methods if filter==true an array of MethodDocImpl for representing the visiblemethods in this class.
public  MethodDoc[]methods()
     Return included methods in class. an array of MethodDocImpl for representing the visiblemethods in this class.
public  intmodifierSpecifier()
    
public  Stringmodifiers()
     Return the modifier string for this class.
public  Stringname()
     Return the class name without package qualifier - but with enclosing class qualifier - as a String.
public  SourcePositionposition()
     Return the source position of the entity, or null if no position is available.
public  StringqualifiedName()
     Return the qualified class name as a String.
public  StringqualifiedTypeName()
     Return qualified name of type excluding any dimension information.
public  FieldDoc[]serializableFields()
     Return the Serializable fields of class.

Return either a list of default fields documented by serial tag
or return a single FieldDoc for serialPersistentField member.

public  MethodDoc[]serializationMethods()
     Return the serialization methods for this class.
public  StringsimpleTypeName()
     Return the simple name of this type.
public  booleansubclassOf(ClassDoc cd)
     Test whether this class is a subclass of the specified class.
Parameters:
  cd - the candidate superclass.
public  ClassDocsuperclass()
    
public  com.sun.javadoc.TypesuperclassType()
     Return the superclass of this class.
public  StringtoString()
     Return the qualified name and any type parameters.
public  StringtypeName()
     Return unqualified name of type excluding any dimension information.
public  ParamTag[]typeParamTags()
     Return the type parameter tags of this class or interface.
public  TypeVariable[]typeParameters()
     Return the formal type parameters of this class or interface.

Field Detail
isIncluded
boolean isIncluded(Code)



tsym
final protected ClassSymbol tsym(Code)



type
final public ClassType type(Code)




Constructor Detail
ClassDocImpl
public ClassDocImpl(DocEnv env, ClassSymbol sym)(Code)
Constructor



ClassDocImpl
public ClassDocImpl(DocEnv env, ClassSymbol sym, String documentation, JCClassDecl tree, Position.LineMap lineMap)(Code)
Constructor




Method Detail
addAllClasses
void addAllClasses(ListBuffer<ClassDocImpl> l, boolean filtered)(Code)
Adds all inner classes of this class, and their inner classes recursively, to the list l.



asAnnotationTypeDoc
public AnnotationTypeDoc asAnnotationTypeDoc()(Code)
Return null (unless overridden), as this is not an annotation type.



asClassDoc
public ClassDoc asClassDoc()(Code)
Return this type as a class, which it already is.



asParameterizedType
public ParameterizedType asParameterizedType()(Code)
Return null, as this is not a class instantiation.



asTypeVariable
public TypeVariable asTypeVariable()(Code)
Return null, as this is not a type variable.



asWildcardType
public WildcardType asWildcardType()(Code)
Return null, as this is not a wildcard type.



classToString
static String classToString(DocEnv env, ClassSymbol c, boolean full)(Code)
Return the class name with any type parameters as a string. Each parameter is a type variable with optional bounds. If "full" is true all names are qualified, otherwise they are qualified by their enclosing class(es) only.



constructors
public ConstructorDoc[] constructors(boolean filter)(Code)
Return constructors in class.
Parameters:
  filter - include only the included constructors if filter==true an array of ConstructorDocImpl for representing the visibleconstructors in this class.



constructors
public ConstructorDoc[] constructors()(Code)
Return included constructors in class. an array of ConstructorDocImpl for representing the visibleconstructors in this class.



containingPackage
public PackageDoc containingPackage()(Code)
Return the package that this class is contained in.



definesSerializableFields
public boolean definesSerializableFields()(Code)
Return true if Serializable fields are explicitly defined with the special class member serialPersistentFields.
See Also:   ClassDocImpl.serializableFields()
See Also:   SerialFieldTagImpl



dimension
public String dimension()(Code)
Return the type's dimension information. Always return "", as this is not an array type.



enumConstants
public FieldDoc[] enumConstants()(Code)
Return the enum constants if this is an enum type.



fields
public FieldDoc[] fields(boolean filter)(Code)
Return fields in class.
Parameters:
  filter - include only the included fields if filter==true



fields
public FieldDoc[] fields()(Code)
Return included fields in class.



findClass
public ClassDoc findClass(String className)(Code)
Find a class within the context of this class. Search order: qualified name, in this class (inner), in this package, in the class imports, in the package imports. Return the ClassDocImpl if found, null if not found.



findConstructor
public ConstructorDoc findConstructor(String constrName, String[] paramTypes)(Code)
Find constructor in this class.
Parameters:
  constrName - the unqualified name to search for.
Parameters:
  paramTypeArray - the array of Strings for constructor parameters. the first ConstructorDocImpl which matches, null if not found.



findField
public FieldDoc findField(String fieldName)(Code)
Find a field in this class scope. Search order: this class, outerclasses, interfaces, superclasses. IMP: If see tag is defined in an inner class, which extends a super class and if outerclass and the super class have a visible field in common then Java compiler cribs about the ambiguity, but the following code will search in the above given search order.
Parameters:
  fieldName - the unqualified name to search for. the first FieldDocImpl which matches, null if not found.



findMethod
public MethodDocImpl findMethod(String methodName, String[] paramTypes)(Code)
Find a method in this class scope. Search order: this class, interfaces, superclasses, outerclasses. Note that this is not necessarily what the compiler would do!
Parameters:
  methodName - the unqualified name to search for.
Parameters:
  paramTypeArray - the array of Strings for method parameter types. the first MethodDocImpl which matches, null if not found.



getClassName
static String getClassName(ClassSymbol c, boolean full)(Code)
Return the class name as a string. If "full" is true the name is qualified, otherwise it is qualified by its enclosing class(es) only.



getContainingClass
protected ClassSymbol getContainingClass()(Code)
Identify the containing class



getFlags
protected long getFlags()(Code)
Returns the flags in terms of javac's flags



getFlags
static long getFlags(ClassSymbol clazz)(Code)
Returns the flags of a ClassSymbol in terms of javac's flags



importedClasses
public ClassDoc[] importedClasses()(Code)
Get the list of classes declared as imported. These are called "single-type-import declarations" in the JLS. This method is deprecated in the ClassDoc interface. an array of ClassDocImpl representing the imported classes.



importedPackages
public PackageDoc[] importedPackages()(Code)
Get the list of packages declared as imported. These are called "type-import-on-demand declarations" in the JLS. This method is deprecated in the ClassDoc interface. an array of PackageDocImpl representing the imported packages.###NOTE: the syntax supports importing all inner classes from a class as well.



innerClasses
public ClassDoc[] innerClasses(boolean filter)(Code)
Return inner classes within this class.
Parameters:
  filter - include only the included inner classes if filter==true. an array of ClassDocImpl for representing the visibleclasses defined in this class. Anonymous and local classesare not included.



innerClasses
public ClassDoc[] innerClasses()(Code)
Return included inner classes within this class. an array of ClassDocImpl for representing the visibleclasses defined in this class. Anonymous and local classesare not included.



interfaceTypes
public com.sun.javadoc.Type[] interfaceTypes()(Code)
Return interfaces implemented by this class or interfaces extended by this interface. Includes only directly-declared interfaces, not inherited interfaces. Return an empty array if there are no interfaces.



interfaces
public ClassDoc[] interfaces()(Code)
Return interfaces implemented by this class or interfaces extended by this interface. An array of ClassDocImpl representing the interfaces.Return an empty array if there are no interfaces.



isAbstract
public boolean isAbstract()(Code)
Return true if this class is abstract



isAnnotationType
static boolean isAnnotationType(ClassSymbol clazz)(Code)
Is a ClassSymbol an annotation type?



isClass
public boolean isClass()(Code)
Return true if this is a class, not an interface.



isEnum
public boolean isEnum()(Code)
Return true if this is an enumeration. (For legacy doclets, return false.)



isError
public boolean isError()(Code)
Return true if this is an error class



isException
public boolean isException()(Code)
Return true if this is an exception class



isExternalizable
public boolean isExternalizable()(Code)
Return true if this class implements java.io.Externalizable.



isGeneric
static boolean isGeneric(ClassSymbol c)(Code)
Is this class (or any enclosing class) generic? That is, does it have type parameters?



isIncluded
public boolean isIncluded()(Code)
Return true if this class is included in the active set. A ClassDoc is included iff either it is specified on the commandline, or if it's containing package is specified on the command line, or if it is a member class of an included class.



isInterface
public boolean isInterface()(Code)
Return true if this is an interface, but not an annotation type. Overridden by AnnotationTypeDocImpl.



isOrdinaryClass
public boolean isOrdinaryClass()(Code)
Return true if this is a ordinary class, not an enumeration, exception, an error, or an interface.



isPrimitive
public boolean isPrimitive()(Code)
Return false, as this is not a primitive type.



isRuntimeException
boolean isRuntimeException()(Code)
Determine if a class is a RuntimeException.

Used only by ThrowsTagImpl.




isSerializable
public boolean isSerializable()(Code)
Return true if this class implements java.io.Serializable. Since java.io.Externalizable extends java.io.Serializable, Externalizable objects are also Serializable.



isSynthetic
public boolean isSynthetic()(Code)
Returns true if this class was synthesized by the compiler.



isThrowable
public boolean isThrowable()(Code)
Return true if this is a throwable class



methods
public MethodDoc[] methods(boolean filter)(Code)
Return methods in class. This method is overridden by AnnotationTypeDocImpl.
Parameters:
  filter - include only the included methods if filter==true an array of MethodDocImpl for representing the visiblemethods in this class. Does not include constructors.



methods
public MethodDoc[] methods()(Code)
Return included methods in class. an array of MethodDocImpl for representing the visiblemethods in this class. Does not include constructors.



modifierSpecifier
public int modifierSpecifier()(Code)



modifiers
public String modifiers()(Code)
Return the modifier string for this class. If it's an interface exclude 'abstract' keyword from the modifier string



name
public String name()(Code)
Return the class name without package qualifier - but with enclosing class qualifier - as a String.
 Examples:
 for java.util.Hashtable
 return Hashtable
 for java.util.Map.Entry
 return Map.Entry
 



position
public SourcePosition position()(Code)
Return the source position of the entity, or null if no position is available.



qualifiedName
public String qualifiedName()(Code)
Return the qualified class name as a String.
 Example:
 for java.util.Hashtable
 return java.util.Hashtable
 if no qualifier, just return flat name
 



qualifiedTypeName
public String qualifiedTypeName()(Code)
Return qualified name of type excluding any dimension information.

For example, a two dimensional array of String returns 'java.lang.String'.




serializableFields
public FieldDoc[] serializableFields()(Code)
Return the Serializable fields of class.

Return either a list of default fields documented by serial tag
or return a single FieldDoc for serialPersistentField member. There should be a serialField tag for each Serializable field defined by an ObjectStreamField array component of serialPersistentField.
See Also:   ClassDocImpl.definesSerializableFields()
See Also:   SerialFieldTagImpl




serializationMethods
public MethodDoc[] serializationMethods()(Code)
Return the serialization methods for this class. an array of MethodDocImpl that representsthe serialization methods for this class.



simpleTypeName
public String simpleTypeName()(Code)
Return the simple name of this type.



subclassOf
public boolean subclassOf(ClassDoc cd)(Code)
Test whether this class is a subclass of the specified class.
Parameters:
  cd - the candidate superclass. true if cd is a superclass of this class.



superclass
public ClassDoc superclass()(Code)
Return the superclass of this class the ClassDocImpl for the superclass of this class, nullif there is no superclass.



superclassType
public com.sun.javadoc.Type superclassType()(Code)
Return the superclass of this class. Return null if this is an interface. A superclass is represented by either a ClassDoc or a ParameterizedType.



toString
public String toString()(Code)
Return the qualified name and any type parameters. Each parameter is a type variable with optional bounds.



typeName
public String typeName()(Code)
Return unqualified name of type excluding any dimension information.

For example, a two dimensional array of String returns 'String'.




typeParamTags
public ParamTag[] typeParamTags()(Code)
Return the type parameter tags of this class or interface.



typeParameters
public TypeVariable[] typeParameters()(Code)
Return the formal type parameters of this class or interface. Return an empty array if there are none.



Fields inherited from com.sun.tools.javadoc.ProgramElementDocImpl
Position.LineMap lineMap(Code)(Java Doc)
JCTree tree(Code)(Java Doc)

Methods inherited from com.sun.tools.javadoc.ProgramElementDocImpl
public AnnotationDesc[] annotations()(Code)(Java Doc)
public ClassDoc containingClass()(Code)(Java Doc)
public PackageDoc containingPackage()(Code)(Java Doc)
CollationKey generateKey()(Code)(Java Doc)
abstract protected ClassSymbol getContainingClass()(Code)(Java Doc)
abstract protected long getFlags()(Code)(Java Doc)
protected int getModifiers()(Code)(Java Doc)
public boolean isFinal()(Code)(Java Doc)
public boolean isPackagePrivate()(Code)(Java Doc)
public boolean isPrivate()(Code)(Java Doc)
public boolean isProtected()(Code)(Java Doc)
public boolean isPublic()(Code)(Java Doc)
public boolean isStatic()(Code)(Java Doc)
public int modifierSpecifier()(Code)(Java Doc)
public String modifiers()(Code)(Java Doc)
void setTree(JCTree tree)(Code)(Java Doc)

Fields inherited from com.sun.tools.javadoc.DocImpl
protected String documentation(Code)(Java Doc)
final protected DocEnv env(Code)(Java Doc)

Methods inherited from com.sun.tools.javadoc.DocImpl
Comment comment()(Code)(Java Doc)
public String commentText()(Code)(Java Doc)
public int compareTo(Object obj)(Code)(Java Doc)
String documentation()(Code)(Java Doc)
public Tag[] firstSentenceTags()(Code)(Java Doc)
CollationKey generateKey()(Code)(Java Doc)
public String getRawCommentText()(Code)(Java Doc)
public Tag[] inlineTags()(Code)(Java Doc)
public boolean isAnnotationType()(Code)(Java Doc)
public boolean isAnnotationTypeElement()(Code)(Java Doc)
public boolean isClass()(Code)(Java Doc)
public boolean isConstructor()(Code)(Java Doc)
public boolean isEnum()(Code)(Java Doc)
public boolean isEnumConstant()(Code)(Java Doc)
public boolean isError()(Code)(Java Doc)
public boolean isException()(Code)(Java Doc)
public boolean isField()(Code)(Java Doc)
abstract public boolean isIncluded()(Code)(Java Doc)
public boolean isInterface()(Code)(Java Doc)
public boolean isMethod()(Code)(Java Doc)
public boolean isOrdinaryClass()(Code)(Java Doc)
CollationKey key()(Code)(Java Doc)
abstract public String name()(Code)(Java Doc)
public SourcePosition position()(Code)(Java Doc)
abstract public String qualifiedName()(Code)(Java Doc)
String readHTMLDocumentation(InputStream input, String filename) throws IOException(Code)(Java Doc)
public SeeTag[] seeTags()(Code)(Java Doc)
public void setRawCommentText(String rawDocumentation)(Code)(Java Doc)
public Tag[] tags()(Code)(Java Doc)
public Tag[] tags(String tagname)(Code)(Java Doc)
public String toString()(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.