Class SimpleGroovyExecutableMemberDoc
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
org.codehaus.groovy.tools.groovydoc.SimpleGroovyExecutableMemberDoc
- All Implemented Interfaces:
Comparable<GroovyDoc>,GroovyDoc,GroovyExecutableMemberDoc,GroovyMemberDoc,GroovyProgramElementDoc
- Direct Known Subclasses:
SimpleGroovyConstructorDoc,SimpleGroovyMethodDoc
public class SimpleGroovyExecutableMemberDoc
extends SimpleGroovyMemberDoc
implements GroovyExecutableMemberDoc
Base implementation for executable members such as methods and constructors.
-
Field Summary
Fields inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyMemberDoc
belongsToClassFields inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyDoc
ANNOTATION_DEF, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF, TRAIT_DEF -
Constructor Summary
ConstructorsConstructorDescriptionSimpleGroovyExecutableMemberDoc(String name, GroovyClassDoc belongsToClass) Creates an executable member owned by the supplied class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(GroovyParameter parameter) Adds a parameter to this executable member.Returns the flat signature used in rendered output.booleanisNative()Indicates whether this executable is declarednative.booleanIndicates whether this executable is declaredsynchronized.booleanIndicates whether the executable accepts a variable number of arguments.Returns the parameters declared by this executable.Returns the full signature used in rendered output.Returns the checked exceptions declared by this executable.Returns the checked exception types declared by this executable.Methods inherited from class org.codehaus.groovy.tools.groovydoc.SimpleGroovyMemberDoc
commentText, firstSentenceCommentText, isSyntheticMethods 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
commentText, firstSentenceCommentText, 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.GroovyMemberDoc
isSyntheticMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
-
Constructor Details
-
SimpleGroovyExecutableMemberDoc
Creates an executable member owned by the supplied class.- Parameters:
name- the executable namebelongsToClass- the declaring class
-
-
Method Details
-
parameters
Returns the parameters declared by this executable.- Specified by:
parametersin interfaceGroovyExecutableMemberDoc- Returns:
- the declared parameters
-
add
Adds a parameter to this executable member.- Parameters:
parameter- the parameter to add
-
flatSignature
Returns the flat signature used in rendered output.- Specified by:
flatSignaturein interfaceGroovyExecutableMemberDoc- Returns:
- the flat signature
-
isNative
public boolean isNative()Indicates whether this executable is declarednative.- Specified by:
isNativein interfaceGroovyExecutableMemberDoc- Returns:
trueif this executable is native
-
isSynchronized
public boolean isSynchronized()Indicates whether this executable is declaredsynchronized.- Specified by:
isSynchronizedin interfaceGroovyExecutableMemberDoc- Returns:
trueif this executable is synchronized
-
isVarArgs
public boolean isVarArgs()Indicates whether the executable accepts a variable number of arguments.- Specified by:
isVarArgsin interfaceGroovyExecutableMemberDoc- Returns:
trueif this executable is variadic
-
signature
Returns the full signature used in rendered output.- Specified by:
signaturein interfaceGroovyExecutableMemberDoc- Returns:
- the executable signature
-
thrownExceptions
Returns the checked exceptions declared by this executable.- Specified by:
thrownExceptionsin interfaceGroovyExecutableMemberDoc- Returns:
- the declared exceptions
-
thrownExceptionTypes
Returns the checked exception types declared by this executable.- Specified by:
thrownExceptionTypesin interfaceGroovyExecutableMemberDoc- Returns:
- the declared exception types
-