com.sun.tools.doclets.internal.toolkit.util
Class VisibleMemberMap.ClassMembers

java.lang.Object
  extended by com.sun.tools.doclets.internal.toolkit.util.VisibleMemberMap.ClassMembers
Enclosing class:
VisibleMemberMap

private class VisibleMemberMap.ClassMembers
extends java.lang.Object

A data structure that represents the class members for a visible class.


Field Summary
private  java.lang.String level
          Level/Depth of inheritance.
private  ClassDoc mappingClass
          The mapping class, whose inherited members are put in the members list.
private  java.util.List<ProgramElementDoc> members
          List of inherited members from the mapping class.
 
Constructor Summary
private VisibleMemberMap.ClassMembers(ClassDoc mappingClass, java.lang.String level)
           
 
Method Summary
private  void addMembers(ClassDoc fromClass)
          Get all the valid members from the mapping class.
private  void build()
           
private  AnnotationTypeElementDoc[] filter(AnnotationTypeDoc doc, boolean required)
          Filter the annotation type members and return either the required members or the optional members, depending on the value of the required parameter.
private  boolean found(java.util.List<ProgramElementDoc> list, ProgramElementDoc elem)
           
private  java.util.List<ProgramElementDoc> getClassMembers(ClassDoc cd, boolean filter)
          Return all available class members.
 java.util.List<ProgramElementDoc> getMembers()
          Return list of inherited members from mapping class.
private  boolean isOverridden(ProgramElementDoc pgmdoc, java.lang.String level)
          Is member overridden? The member is overridden if it is found in the same level hierarchy e.g.
private  void mapClass()
           
private  boolean memberIsVisible(ProgramElementDoc pgmdoc)
          Is given doc item visible in given classdoc in terms fo inheritance? The given doc item is visible in the given classdoc if it is public or protected and if it is package-private if it's containing class is in the same package as the given classdoc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mappingClass

private ClassDoc mappingClass
The mapping class, whose inherited members are put in the members list.


members

private java.util.List<ProgramElementDoc> members
List of inherited members from the mapping class.


level

private java.lang.String level
Level/Depth of inheritance.

Constructor Detail

VisibleMemberMap.ClassMembers

private VisibleMemberMap.ClassMembers(ClassDoc mappingClass,
                                      java.lang.String level)
Method Detail

getMembers

public java.util.List<ProgramElementDoc> getMembers()
Return list of inherited members from mapping class.

Returns:
List Inherited members.

build

private void build()

mapClass

private void mapClass()

addMembers

private void addMembers(ClassDoc fromClass)
Get all the valid members from the mapping class. Get the list of members for the class to be included into(ctii), also get the level string for ctii. If mapping class member is not already in the inherited member list and if it is visible in the ctii and not overridden, put such a member in the inherited member list. Adjust member-level-map, class-map.


memberIsVisible

private boolean memberIsVisible(ProgramElementDoc pgmdoc)
Is given doc item visible in given classdoc in terms fo inheritance? The given doc item is visible in the given classdoc if it is public or protected and if it is package-private if it's containing class is in the same package as the given classdoc.


getClassMembers

private java.util.List<ProgramElementDoc> getClassMembers(ClassDoc cd,
                                                          boolean filter)
Return all available class members.


filter

private AnnotationTypeElementDoc[] filter(AnnotationTypeDoc doc,
                                          boolean required)
Filter the annotation type members and return either the required members or the optional members, depending on the value of the required parameter.

Parameters:
doc - The annotation type to process.
required -
Returns:
the annotation type members and return either the required members or the optional members, depending on the value of the required parameter.

found

private boolean found(java.util.List<ProgramElementDoc> list,
                      ProgramElementDoc elem)

isOverridden

private boolean isOverridden(ProgramElementDoc pgmdoc,
                             java.lang.String level)
Is member overridden? The member is overridden if it is found in the same level hierarchy e.g. member at level "11" overrides member at level "111".