| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttests.PrivateAccessor
public class PrivateAccessor
Provides access to private members in classes.
| Constructor Summary | |
|---|---|
| PrivateAccessor() | |
| Method Summary | |
|---|---|
| static java.lang.Object | callMethod(java.lang.Object o,
           java.lang.String methodName,
           java.lang.Class[] types,
           java.lang.Object[] params)Call the method specified. | 
| static java.lang.Object | callMethod(java.lang.Object o,
           java.lang.String methodName,
           java.lang.Object[] params)Call the method specified. | 
| static java.lang.Object | getField(java.lang.Object o,
         java.lang.String fieldName)Return the value of the field specified. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public PrivateAccessor()
| Method Detail | 
|---|
public static java.lang.Object getField(java.lang.Object o,
                                        java.lang.String fieldName)
o - method containing the fieldfieldName - name of the field
public static java.lang.Object callMethod(java.lang.Object o,
                                          java.lang.String methodName,
                                          java.lang.Class[] types,
                                          java.lang.Object[] params)
o - object containing the methodmethodName - name of the methodtypes - type of the argumentsparams - parameters
public static java.lang.Object callMethod(java.lang.Object o,
                                          java.lang.String methodName,
                                          java.lang.Object[] params)
o - object containing the methodmethodName - name of the methodparams - parameters
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||