class ClassUtils
extends Object
Utility methods for probing whether classes are available to the shell or current JVM.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static boolean |
lookFor(String s)Determines whether the current JVM can resolve the named class. |
|
static boolean |
lookFor(GroovyEngine engine, String s)Determines whether the shell script engine can resolve the named class. |
Determines whether the current JVM can resolve the named class.
s - fully qualified class name to resolvetrue if the class can be loadedDetermines whether the shell script engine can resolve the named class.
engine - script engine used to evaluate the lookups - fully qualified class name to resolvetrue if the class can be loaded in the engine context