public class ReflectionUtil extends Object
Constructor and Description |
---|
ReflectionUtil() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
isEnumViaReflection(Class type)
Calls isEnum() method on target class vi areflection to find out
whether the given type is a Java 5 enumeration.
|
public static Boolean isEnumViaReflection(Class type) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException
type
- The type to analyze.NoSuchMethodException
- If the method can not be found.IllegalAccessException
- If access to this method is illegalInvocationTargetException
- If the target method can not be invoked.Copyright © 2015. All rights reserved.