public class SimpleGroovyMethodDoc
extends SimpleGroovyExecutableMemberDoc
implements GroovyMethodDoc
Default GroovyMethodDoc implementation.
| Fields inherited from class | Fields |
|---|---|
class SimpleGroovyMemberDoc |
belongsToClass |
class SimpleGroovyDoc |
ANNOTATION_DEF, CLASS_DEF, ENUM_DEF, INTERFACE_DEF, RECORD_DEF, TRAIT_DEF |
| Constructor and description |
|---|
SimpleGroovyMethodDoc(String name, GroovyClassDoc belongsToClass)Creates a documented method owned by the supplied class. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public GroovyClassDoc |
overriddenClass()Returns the class in which the overridden method is declared.
|
|
public GroovyMethodDoc |
overriddenMethod()Returns the method that this method overrides.
|
|
public GroovyType |
overriddenType()Returns the type that declares the method overridden by this method.
|
|
public boolean |
overrides(GroovyMethodDoc arg0)Indicates whether this method overrides the supplied method.
|
|
public GroovyType |
returnType()Returns the declared return type of this method.
|
|
public void |
setReturnType(GroovyType returnType)Updates the declared return type of this method.
|
|
public void |
setTypeParameters(String typeParameters)Stores the rendered type parameters for this method. |
|
public String |
typeParameters()Returns the rendered type parameters for this method. |
Creates a documented method owned by the supplied class.
name - the method namebelongsToClass - the declaring classReturns the class in which the overridden method is declared.
null if none existsReturns the method that this method overrides.
null if none existsReturns the type that declares the method overridden by this method.
null if none existsIndicates whether this method overrides the supplied method.
arg0 - the candidate methodtrue if this method overrides arg0Returns the declared return type of this method.
Updates the declared return type of this method.
o - the return type to associate with this methodStores the rendered type parameters for this method.
typeParameters - the type parameter declaration textReturns the rendered type parameters for this method.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.