make
function make<Type>() -> Type?
Make an object, with the type given as an argument.
- Type: The type.
Returns: An optional with a value if successful, or no value if not successful.
The make will not succeed if the type is a class with initialization parameters, or a compound type that includes such a class.
function make(name:String) -> Object?
Make an object, with the class given as a string.
- name: Name of the class.
Returns: An optional with a value if successful, or no value if not successful.
The make will not succeed if the class has initialization parameters.
function make(name:String?) -> Object?
Make an object, with the class possibly given as a string.
- name: Name of the class.
Returns: An optional with a value if successful, or no value if not
successful or name
has no value.
function make(buffer:Buffer) -> Object?
Make an object, with the class given in a buffer.
- buffer: The buffer.
Returns: An optional with a value if successful, or no value if not successful.
If the buffer contains a key class
, an object of that class is
constructed. The buffer is then passed to the read()
function of the new
object.
The make will not succeed if the class has initialization parameters.