Package org.codehaus.groovy.runtime
Class Reflector
java.lang.Object
org.codehaus.groovy.runtime.Reflector
Provides as alternative to reflection using bytecode generation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(CachedMethod method, Object object, Object[] arguments) Does not callmethod.protected ObjectnoSuchMethod(CachedMethod method, Object object, Object[] arguments) Throws a non-staticMissingMethodExceptionusingmethod's name and declaring class.
-
Constructor Details
-
Reflector
public Reflector()
-
-
Method Details
-
invoke
Does not callmethod. This base implementation always delegates tonoSuchMethod(CachedMethod, Object, Object[]). Generated reflectors override this method to perform the call.- Parameters:
method- the method that was selectedobject- the receiver, passed through unused by this implementationarguments- the arguments, passed through- Returns:
- nothing; this implementation always throws
-
noSuchMethod
Throws a non-staticMissingMethodExceptionusingmethod's name and declaring class.objectis ignored. A nullargumentsarray is recorded as an empty argument list; a non-null array is retained as given.- Parameters:
method- supplies the missing name and declaring classobject- unusedarguments- arguments recorded on the exception;nullbecomes an empty array- Returns:
- nothing; this method always throws
-