We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.tools.
Class ReflectTools
java.lang.Object
com.vaadin.tools.ReflectTools
- extends Object
public class ReflectTools
An util class with helpers for reflection operations. Used internally by Vaadin and should not be used by application developers. Subject to change at any time.
Since:
6.2
Constructor Summary | |
---|---|
ReflectTools()
|
Method Summary | |
---|---|
static Method |
findMethod(Class<?> cls,
String methodName,
Class<?>... parameterTypes)
Locates the method in the given class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
ReflectTools
public ReflectTools()
Method Detail |
---|
findMethod
public static Method findMethod(Class<?> cls,
String methodName,
Class<?>... parameterTypes)
throws ExceptionInInitializerError
- Parameters:
cls
- Class that contains the methodmethodName
- The name of the methodparameterTypes
- The parameter types for the method.- Returns:
- A reference to the method
- Throws:
ExceptionInInitializerError
- Wraps any exception in anExceptionInInitializerError
so this method can be called from a static initializer.
Locates the method in the given class. Returns null if the method is not found. Throws an ExceptionInInitializerError if there is a problem locating the method as this is mainly called from static blocks.