Java Doc for ReflectHelper.java in  » Web-Framework » Strecks » org » strecks » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » Strecks » org.strecks.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.strecks.util.ReflectHelper

ReflectHelper
public class ReflectHelper (Code)
Class with reflection-related helper methods
author:
   Phil Zoio




Method Summary
public static  booleancheckGenericType(Class inputClass, Class genericInterface, Class specificType)
    
public static  voidcheckParameterTypeLength(Method m, int parameterCount)
    
public static  StringcheckSetterMethodName(Method m)
    
public static  TcreateInstance(String className, Class<T> type)
    
public static  TcreateInstance(Class clazz, Class<T> type)
    
public static  ClassgetBeanPropertyType(Object containingBean, String beanPropertyName)
    
public static  ClassgetGenericType(Class c, Class genericInterface)
    
public static  Type[]getGenericTypes(Class c, Class genericInterface)
    
public static  MethodgetGetter(Method setterMethod)
    
public static  MethodgetMethod(Object o, String methodName)
    
public static  MethodgetMethod(String methodName, Class<? extends Object> clazz)
    
static  ParameterizedTypegetParameterizedType(Class genericInterface, Class inputClass)
    
public static  StringgetPropertyName(String setterName)
    
public static  MethodgetSetter(Method getterMethod)
    
public static  StringgetTypeArrayDescription(Type[] types)
    
public static  StringgetTypeDescription(Type type)
    
public static  booleanhasReturnValue(Method method)
    
public static  TinvokeMethod(Object o, String methodName, Class<T> returnType)
    
public static  ObjectinvokeMethod(Object o, String methodName)
    
public static  ObjectinvokeMethod(Object o, Method method)
    
public static  TinvokeMethod(Object o, Method method, Class<T> returnType)
    
public static  booleanisGetter(Method method)
    
public static  booleanisSetter(Method method)
    



Method Detail
checkGenericType
public static boolean checkGenericType(Class inputClass, Class genericInterface, Class specificType)(Code)
Checks that the input type is parameterized by the class expectedType
Parameters:
  inputClass - the class being tested
Parameters:
  genericInterface - is the interface that the inputClass implements
Parameters:
  specificType - the expected parameterization type false if the expectedType is not assignable from the actual parameterized type



checkParameterTypeLength
public static void checkParameterTypeLength(Method m, int parameterCount)(Code)
Checks that a method has exactly the specified number of parameters



checkSetterMethodName
public static String checkSetterMethodName(Method m)(Code)
Checks whether a particular method begins with "set"



createInstance
public static T createInstance(String className, Class<T> type)(Code)



createInstance
public static T createInstance(Class clazz, Class<T> type)(Code)



getBeanPropertyType
public static Class getBeanPropertyType(Object containingBean, String beanPropertyName)(Code)
Fnd the type of a the property of containingBean identified by beanPropertyName the type of the bean property as a class Class instance



getGenericType
public static Class getGenericType(Class c, Class genericInterface)(Code)
Returns the (single) generic parameterization type fo the input class, for a given interface, if this can be determined the parameterization class, if this can be determined, otherwise null



getGenericTypes
public static Type[] getGenericTypes(Class c, Class genericInterface)(Code)
Returns the (single) generic parameterization type fo the input class, for a given interface, if this can be determined the parameterization class, if this can be determined, otherwise null



getGetter
public static Method getGetter(Method setterMethod)(Code)
Gets getter corresponding with setter method



getMethod
public static Method getMethod(Object o, String methodName)(Code)



getMethod
public static Method getMethod(String methodName, Class<? extends Object> clazz)(Code)



getParameterizedType
static ParameterizedType getParameterizedType(Class genericInterface, Class inputClass)(Code)



getPropertyName
public static String getPropertyName(String setterName)(Code)
Returns the property name associated with a setter method with the given name



getSetter
public static Method getSetter(Method getterMethod)(Code)
Gets setter corresponding with getter method



getTypeArrayDescription
public static String getTypeArrayDescription(Type[] types)(Code)



getTypeDescription
public static String getTypeDescription(Type type)(Code)
Provides basic information on a particular type



hasReturnValue
public static boolean hasReturnValue(Method method)(Code)



invokeMethod
public static T invokeMethod(Object o, String methodName, Class<T> returnType)(Code)
Invokes the specified method on the specified object



invokeMethod
public static Object invokeMethod(Object o, String methodName)(Code)
Invokes the specified method on the specified object



invokeMethod
public static Object invokeMethod(Object o, Method method)(Code)



invokeMethod
public static T invokeMethod(Object o, Method method, Class<T> returnType)(Code)



isGetter
public static boolean isGetter(Method method)(Code)



isSetter
public static boolean isSetter(Method method)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.