| java.lang.Object sun.reflect.Reflection
Reflection | public class Reflection (Code) | | Common utility routines used by both java.lang and
java.lang.reflect
|
Method Summary | |
public static void | ensureMemberAccess(Class currentClass, Class memberClass, Object target, int modifiers) | public static Field[] | filterFields(Class containingClass, Field[] fields) | public static Method[] | filterMethods(Class containingClass, Method[] methods) | native public static Class | getCallerClass(int realFramesToSkip) Returns the class of the method realFramesToSkip
frames up the stack (zero-based), ignoring frames associated
with java.lang.reflect.Method.invoke() and its implementation.
The first frame is that associated with this method, so
getCallerClass(0) returns the Class object for
sun.reflect.Reflection. | static boolean | isSubclassOf(Class queryClass, Class ofClass) | public static boolean | quickCheckMemberAccess(Class memberClass, int modifiers) A quick "fast-path" check to try to avoid getCallerClass()
calls. | public static synchronized void | registerFieldsToFilter(Class containingClass, String... fieldNames) | public static synchronized void | registerMethodsToFilter(Class containingClass, String... methodNames) | public static boolean | verifyMemberAccess(Class currentClass, Class memberClass, Object target, int modifiers) |
getCallerClass | native public static Class getCallerClass(int realFramesToSkip)(Code) | | Returns the class of the method realFramesToSkip
frames up the stack (zero-based), ignoring frames associated
with java.lang.reflect.Method.invoke() and its implementation.
The first frame is that associated with this method, so
getCallerClass(0) returns the Class object for
sun.reflect.Reflection. Frames associated with
java.lang.reflect.Method.invoke() and its implementation are
completely ignored and do not count toward the number of "real"
frames skipped.
|
quickCheckMemberAccess | public static boolean quickCheckMemberAccess(Class memberClass, int modifiers)(Code) | | A quick "fast-path" check to try to avoid getCallerClass()
calls.
|
registerFieldsToFilter | public static synchronized void registerFieldsToFilter(Class containingClass, String... fieldNames)(Code) | | |
registerMethodsToFilter | public static synchronized void registerMethodsToFilter(Class containingClass, String... methodNames)(Code) | | |
verifyMemberAccess | public static boolean verifyMemberAccess(Class currentClass, Class memberClass, Object target, int modifiers)(Code) | | |
|
|