Returns the method names of class and its super classes as a list.

# S3 method for class 'Class'
getMethods(this, private=FALSE, deprecated=TRUE, unique=TRUE, ...)

Arguments

private

If TRUE, private methods are also returned, otherwise only public ones are returned.

deprecated

If TRUE, deprecated methods are also returned.

unique

If TRUE, only methods that are not implemented in one of the subclasses are returned for each class.

...

Not used.

Value

Returns a named list of named character strings.

Author

Henrik Bengtsson

See also

For more information see Class.

Examples

  names <- getMethods(Exception)
  print(names)
#> $Exception
#>                 as.character                      getCall 
#>     "as.character.Exception"          "getCall.Exception" 
#>                     getCalls             getLastException 
#>         "getCalls.Exception" "getLastException.Exception" 
#>                   getMessage                getStackTrace 
#>       "getMessage.Exception"    "getStackTrace.Exception" 
#>                      getWhen                        print 
#>          "getWhen.Exception"            "print.Exception" 
#>              printStackTrace                        throw 
#>  "printStackTrace.Exception"            "throw.Exception" 
#> 
#> $condition
#>                        abort                conditionCall 
#>            "abort.condition"    "conditionCall.condition" 
#>             conditionMessage 
#> "conditionMessage.condition" 
#> 
#> $Object
#>                             $                           $<- 
#>                    "$.Object"                  "$<-.Object" 
#>                            [[                          [[<- 
#>                   "[[.Object"                 "[[<-.Object" 
#>                        attach                 attachLocally 
#>               "attach.Object"        "attachLocally.Object" 
#>                    clearCache              clearLookupCache 
#>           "clearCache.Object"     "clearLookupCache.Object" 
#>                         clone                        detach 
#>                "clone.Object"               "detach.Object" 
#>                        equals                        extend 
#>               "equals.Object"               "extend.Object" 
#>                      finalize                getEnvironment 
#>             "finalize.Object"       "getEnvironment.Object" 
#>              getFieldModifier             getFieldModifiers 
#>     "getFieldModifier.Object"    "getFieldModifiers.Object" 
#>                     getFields          getInstantiationTime 
#>            "getFields.Object" "getInstantiationTime.Object" 
#>             getStaticInstance                      hasField 
#>    "getStaticInstance.Object"             "hasField.Object" 
#>                      hashCode                            ll 
#>             "hashCode.Object"                   "ll.Object" 
#>                          load                         names 
#>                 "load.Object"                "names.Object" 
#>                    objectSize                          save 
#>           "objectSize.Object"                 "save.Object" 
#>