Package: org.apache.groovy.groovysh.util

## [Groovy] Class ClassUtils

- org.apache.groovy.groovysh.util.ClassUtils

-     class ClassUtils
      extends Object

  Utility methods for probing whether classes are available to the shell or current JVM.

- - ### Methods Summary

    Methods
    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.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### static boolean lookFor(String s)

      Determines whether the current JVM can resolve the named class.

      Parameters:
        `s` - fully qualified class name to resolve
      Returns:
        `true` if the class can be loaded

    - #### static boolean lookFor(GroovyEngine engine, String s)

      Determines whether the shell script engine can resolve the named class.

      Parameters:
        `engine` - script engine used to evaluate the lookup
        `s` - fully qualified class name to resolve
      Returns:
        `true` if the class can be loaded in the engine context