public class Reflector
extends Object
Provides as alternative to reflection using bytecode generation.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
invoke(CachedMethod method, Object object, Object[] arguments)Does not call method. |
|
protected Object |
noSuchMethod(CachedMethod method, Object object, Object[] arguments)Throws a non-static MissingMethodException using method's name
and declaring class. |
Does not call method. This base implementation always delegates to
noSuchMethod(CachedMethod, Object, Object[]). Generated reflectors
override this method to perform the call.
method - the method that was selectedobject - the receiver, passed through unused by this implementationarguments - the arguments, passed through Throws a non-static MissingMethodException using method's name
and declaring class. object is ignored. A null arguments array
is recorded as an empty argument list; a non-null array is retained as given.
method - supplies the missing name and declaring classobject - unusedarguments - arguments recorded on the exception; null becomes an empty array