Class VisibleMemberMap.ClassMembers
java.lang.Object
gw.gosudoc.com.sun.tools.doclets.internal.toolkit.util.VisibleMemberMap.ClassMembers
- Enclosing class:
- VisibleMemberMap
A data structure that represents the class members for
a visible class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddMembers(ClassDoc fromClass) Get all the valid members from the mapping class.private voidaddToPropertiesMap(MethodDoc setter, MethodDoc getter, MethodDoc propertyMethod, FieldDoc field) private voidaddToPropertiesMap(ProgramElementDoc propertyMethod, ProgramElementDoc commentSource) private voidbuild()private voidcheckOnPropertiesTags(MethodDoc[] members) private FieldDocfieldForProperty(FieldDoc[] fields, MethodDoc property) 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 booleanfound(List<ProgramElementDoc> list, ProgramElementDoc elem) private List<ProgramElementDoc>getClassMembers(ClassDoc cd, boolean filter) Return all available class members.Return list of inherited members from mapping class.private MethodDocgetterForField(MethodDoc[] methods, MethodDoc propertyMethod) private booleanisOverridden(ProgramElementDoc pgmdoc, String level) Is member overridden? The member is overridden if it is found in the same level hierarchy e.g.private booleanisPropertyGetterOrSetter(MethodDoc[] members, MethodDoc methodDoc) private booleanisPropertyMethod(MethodDoc method) private booleanisTreatedAsPrivate(ProgramElementDoc pgmelem) private voidmapClass()private booleanmemberIsVisible(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.private ProgramElementDoc[]properties(ClassDoc cd, boolean filter) private MethodDocsetterForField(MethodDoc[] methods, MethodDoc propertyMethod)
-
Field Details
-
mappingClass
The mapping class, whose inherited members are put in thememberslist. -
members
List of inherited members from the mapping class. -
level
Level/Depth of inheritance. -
pattern
-
-
Constructor Details
-
ClassMembers
-
-
Method Details
-
getMembers
Return list of inherited members from mapping class.- Returns:
- List Inherited members.
-
build
private void build() -
mapClass
private void mapClass() -
addMembers
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. -
isTreatedAsPrivate
-
memberIsVisible
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
Return all available class members. -
filter
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
-
isOverridden
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". -
properties
-
addToPropertiesMap
-
addToPropertiesMap
-
getterForField
-
setterForField
-
fieldForProperty
-
isPropertyMethod
-
checkOnPropertiesTags
-
isPropertyGetterOrSetter
-