Factory method for Method objects.
Factory method for Method objects.
A new method that is public abstract that takes no parameters and returns void and has the name "myMethod" can be created as shown next:
val myMethod = Method(name="myMethod");
The name of the method. In case of a constructor the method name has to be "<init>". In case of a static initializer the name has to be "<clinit>".
Returns true
if the method is object serialization related.
Returns true
if the method is object serialization related.
That is, if the declaring class is Externalizable
then the methods readObject and
writeObject are unused.
If the declaring class is only Seralizable
then the write and read
external methods are not serialization related unless a subclass exists that inherits
these two methods and implements the interface Externalizable
.
A method defined by a class that inherits from Serializable or which has at least one sublcass that is Serializable and that inherits the given method.
This parameter should be Yes
iff this method is
defined in a Serializable
class or is inherited by at least one class that is
(just) Serializable
, but which is not Externalizable
.
This parameter should be Yes
iff the method's
defining class is Externalizable
or if this method is inherited by at least one class
that is Externalizable
.
Calling this method only makes sense if the given class or a subclass thereof
is at least Serializable
.
Defines factory and extractor methods for
Method
objects.