getFields.Object

0th

Percentile

Returns the field names of an Object

Returns the field names of an Object.

Keywords
methods, internal, programming
Usage
"getFields"(this, private=FALSE, ...)
Arguments
private
If TRUE, private fields will also be returned, otherwise only public fields are returned.
...
Not used.
Value

Returns a character vector of field names.

See Also

To check if a field exists or not, see *hasField(). For more extensive information about the fields in an Object see *ll(). For more information see Object.

Aliases
  • getFields.Object
  • Object.getFields
  • getFields,Object-method
  • Object.names
  • names.Object
  • names,Object-method
Examples
  obj <- Object()
  obj$x <- 1:100
  obj$y <- 100:1
  getFields(obj)

  ## Not run: 
#   gives:
# 
#   [1] "x" "y"
#   ## End(Not run)
Documentation reproduced from package R.oo, version 1.20.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.