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 void
addMembers
(ClassDoc fromClass) Get all the valid members from the mapping class.private void
addToPropertiesMap
(MethodDoc setter, MethodDoc getter, MethodDoc propertyMethod, FieldDoc field) private void
addToPropertiesMap
(ProgramElementDoc propertyMethod, ProgramElementDoc commentSource) private void
build()
private void
checkOnPropertiesTags
(MethodDoc[] members) private FieldDoc
fieldForProperty
(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 boolean
found
(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 MethodDoc
getterForField
(MethodDoc[] methods, MethodDoc propertyMethod) private boolean
isOverridden
(ProgramElementDoc pgmdoc, String level) Is member overridden? The member is overridden if it is found in the same level hierarchy e.g.private boolean
isPropertyGetterOrSetter
(MethodDoc[] members, MethodDoc methodDoc) private boolean
isPropertyMethod
(MethodDoc method) private boolean
isTreatedAsPrivate
(ProgramElementDoc pgmelem) 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.private ProgramElementDoc[]
properties
(ClassDoc cd, boolean filter) private MethodDoc
setterForField
(MethodDoc[] methods, MethodDoc propertyMethod)
-
Field Details
-
mappingClass
The mapping class, whose inherited members are put in themembers
list. -
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
-