A ClassMetaobject is created for every
class of reflective objects. It can be used to hold values
shared among the reflective objects of the same class.
To obtain a class metaobject, calls _getClass()
on a reflective object. For example,
ClassMetaobject cm = ((Metalevel)reflectiveObject)._getClass();
Returns the identifier index of the method, as identified by its
original name.
This method is useful, in conjuction with
ClassMetaobject#getMethod(), to obtain a quick reference
to the original method in the reflected class (i.e. not the proxy
method), using the original name of the method.
Written by Brett Randall and Shigeru Chiba.
Parameters: originalName - The original name of the reflected method Parameters: argTypes - array of Class specifying the method signature the identifier index of the original method throws: NoSuchMethodException - if the method does not exist See Also:ClassMetaobject.getMethod(int)
getMethodName
final publicString getMethodName(int identifier)(Code)
Returns the name of the method specified
by identifier.
Is invoked when static fields of the base-level
class are read and the runtime system intercepts it.
This method simply returns the value of the field.
Every subclass of this class should redefine this method.
Is invoked when static fields of the base-level
class are modified and the runtime system intercepts it.
This method simply sets the field to the given value.
Every subclass of this class should redefine this method.
Is invoked when static methods of the base-level
class are called and the runtime system intercepts it.
This method simply executes the intercepted method invocation
with the original parameters and returns the resulting value.
Every subclass of this class should redefine this method.