Package gw.internal.gosu.parser
Class JavaMethodCache
- java.lang.Object
-
- gw.internal.gosu.parser.JavaMethodCache
-
public class JavaMethodCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceJavaMethodCache.DeclaredMethodsAccessorprivate static classJavaMethodCache.PrivateGetDeclaredMethodsAccessorstatic classJavaMethodCache.PublicGetDeclaredMethodsAccessor
-
Field Summary
Fields Modifier and Type Field Description private static LockingLazyVar<JavaMethodCache.DeclaredMethodsAccessor>_declaredMethodsAccessorprivate static java.util.Map<java.lang.Class,java.lang.reflect.Method[]>DECLARED_METHOD_CACHE
-
Constructor Summary
Constructors Constructor Description JavaMethodCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidflushCaches()This method is not normally required.static java.lang.reflect.Method[]getDeclaredMethods(java.lang.Class clz)static java.lang.ThrowablegetRootCause(java.lang.Throwable throwable)Traverse exception chain to return the root cause.
-
-
-
Field Detail
-
DECLARED_METHOD_CACHE
private static final java.util.Map<java.lang.Class,java.lang.reflect.Method[]> DECLARED_METHOD_CACHE
-
_declaredMethodsAccessor
private static LockingLazyVar<JavaMethodCache.DeclaredMethodsAccessor> _declaredMethodsAccessor
-
-
Method Detail
-
flushCaches
public static void flushCaches()
This method is not normally required. It is normally only needed by advanced tools that update existing "Class" objects in-place and need to re-analyze existing Class objects.
-
getDeclaredMethods
public static java.lang.reflect.Method[] getDeclaredMethods(java.lang.Class clz)
-
getRootCause
public static java.lang.Throwable getRootCause(java.lang.Throwable throwable)
Traverse exception chain to return the root cause.- Parameters:
throwable- The top-level exception in the chain- Returns:
- The root (or top-level if none chained)
-
-