Class SimpleGroovyMemberDoc
java.lang.Object
org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyProgramElementDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyAbstractableElementDoc
org.codehaus.groovy.tools.groovydoc.SimpleGroovyMemberDoc
- All Implemented Interfaces:
Comparable<GroovyDoc>,GroovyDoc,GroovyMemberDoc,GroovyProgramElementDoc
- Direct Known Subclasses:
SimpleGroovyExecutableMemberDoc,SimpleGroovyFieldDoc
public class SimpleGroovyMemberDoc
extends SimpleGroovyAbstractableElementDoc
implements GroovyMemberDoc
Base implementation for documented members declared within a class.
-
Field Summary
FieldsFields inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
ANNOTATION_DEF, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF, TRAIT_DEF -
Constructor Summary
ConstructorsConstructorDescriptionSimpleGroovyMemberDoc(String name, GroovyClassDoc belongsToClass) Creates a member owned by the supplied class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the processed comment text for this element.Returns the first sentence of the processed comment text.booleanIndicates whether this member was synthesized rather than declared directly in source.Methods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyAbstractableElementDoc
isAbstract, setAbstractMethods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyProgramElementDoc
addAnnotationRef, annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName, setContainingPackage, setFinal, setPackagePrivate, setPrivate, setProtected, setPublic, setStaticMethods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
calculateFirstSentence, compareTo, getRawCommentText, getTypeDescription, getTypeSourceDescription, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isDeprecated, isEnum, isEnumConstant, isError, isException, isField, isHidden, isIncluded, isInterface, isMarkdown, isMethod, isOrdinaryClass, isRecord, isScript, isTrait, name, setCommentText, setDeprecated, setFirstSentenceCommentText, setHidden, setMarkdown, setRawCommentText, setScript, setTokenType, tags, tokenType, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyDoc
getRawCommentText, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isDeprecated, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, isRecord, name, setRawCommentTextMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
-
Field Details
-
belongsToClass
The class that declares this member.
-
-
Constructor Details
-
SimpleGroovyMemberDoc
Creates a member owned by the supplied class.- Parameters:
name- the member namebelongsToClass- the declaring class
-
-
Method Details
-
isSynthetic
public boolean isSynthetic()Indicates whether this member was synthesized rather than declared directly in source.- Specified by:
isSyntheticin interfaceGroovyMemberDoc- Returns:
trueif this member is synthetic
-
firstSentenceCommentText
Returns the first sentence of the processed comment text.- Specified by:
firstSentenceCommentTextin interfaceGroovyDoc- Overrides:
firstSentenceCommentTextin classSimpleGroovyDoc- Returns:
- the first sentence summary
-
commentText
Returns the processed comment text for this element.- Specified by:
commentTextin interfaceGroovyDoc- Overrides:
commentTextin classSimpleGroovyDoc- Returns:
- the rendered comment text
-