Class representing a piece of code.
Methods
Method new()
Initializer method
Arguments
name
(character(1)
)
Name of Code object.
lines
(character(n)
)
Vector of lines Code object.
Overload generic print, to print Code object.
Arguments
...
further arguments passed to or from other methods. See print.
Method getLines()
Get method for lines.
Returns
(character(n)
) Vector of lines in the Code object.
Method getNLines()
Get method for number of lines.
Returns
(numeric(1)
) Number of lines in the Code object.
Method getName()
Get method for Name.
Returns
(character(1)
) Name of the Code object.
Method clone()
The objects of this class are cloneable with this method.
Arguments
deep
Whether to make a deep clone.