Class 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.
  • Constructor Details

    • SimpleGroovyExecutableMemberDoc

      public SimpleGroovyExecutableMemberDoc(String name, GroovyClassDoc belongsToClass)
      Creates an executable member owned by the supplied class.
      Parameters:
      name - the executable name
      belongsToClass - the declaring class
  • Method Details

    • parameters

      public GroovyParameter[] parameters()
      Returns the parameters declared by this executable.
      Specified by:
      parameters in interface GroovyExecutableMemberDoc
      Returns:
      the declared parameters
    • add

      public void add(GroovyParameter parameter)
      Adds a parameter to this executable member.
      Parameters:
      parameter - the parameter to add
    • flatSignature

      public String flatSignature()
      Returns the flat signature used in rendered output.
      Specified by:
      flatSignature in interface GroovyExecutableMemberDoc
      Returns:
      the flat signature
    • isNative

      public boolean isNative()
      Indicates whether this executable is declared native.
      Specified by:
      isNative in interface GroovyExecutableMemberDoc
      Returns:
      true if this executable is native
    • isSynchronized

      public boolean isSynchronized()
      Indicates whether this executable is declared synchronized.
      Specified by:
      isSynchronized in interface GroovyExecutableMemberDoc
      Returns:
      true if this executable is synchronized
    • isVarArgs

      public boolean isVarArgs()
      Indicates whether the executable accepts a variable number of arguments.
      Specified by:
      isVarArgs in interface GroovyExecutableMemberDoc
      Returns:
      true if this executable is variadic
    • signature

      public String signature()
      Returns the full signature used in rendered output.
      Specified by:
      signature in interface GroovyExecutableMemberDoc
      Returns:
      the executable signature
    • thrownExceptions

      public GroovyClassDoc[] thrownExceptions()
      Returns the checked exceptions declared by this executable.
      Specified by:
      thrownExceptions in interface GroovyExecutableMemberDoc
      Returns:
      the declared exceptions
    • thrownExceptionTypes

      public GroovyType[] thrownExceptionTypes()
      Returns the checked exception types declared by this executable.
      Specified by:
      thrownExceptionTypes in interface GroovyExecutableMemberDoc
      Returns:
      the declared exception types