public final class Classes extends Object
Modifier and Type | Method and Description |
---|---|
static Class<?> |
childClassOf(Class<?> parentClass,
Object instance)
Returns the class of the immediate subclass of the given parent class for
the given object instance; or null if such immediate subclass cannot be
uniquely identified for the given object instance.
|
static JarFile |
jarFileOf(Class<?> klass)
Returns the jar file from which the given class is loaded; or null
if no such jar file can be located.
|
public static Class<?> childClassOf(Class<?> parentClass, Object instance)
parentClass
- the parent class. The child class is Object
if and
only if the parent class is null.instance
- the given object instanceCopyright © 2017 Amazon Web Services, Inc. All Rights Reserved.