Package: org.codehaus.groovy.reflection

## [Java] Class SunClassLoader

- org.codehaus.groovy.reflection.SunClassLoader

- All Implemented Interfaces and Traits:
    org.objectweb.asm.Opcodes

      public class SunClassLoader
      extends ClassLoader

  Special class loader, which when running on Sun VM allows to generate accessor classes for any method

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected Map<String, Class>` | `knownClasses` |
    `protected static SunClassLoader` | `sunVM` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `protected SunClassLoader ()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected void` | `define(byte[] bytes, String name)`
    `` | `Class` | `doesKnow(String name)`
    `` | `protected Class` | `loadClass(String name, boolean resolve)`
    `` | `protected void` | `loadFromRes(String name)`
    `` | `protected static String` | `resName(String s)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class ClassLoader` | `loadClass, getSystemClassLoader, getResource, getResourceAsStream, getSystemResource, getSystemResourceAsStream, clearAssertionStatus, getParent, getResources, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### protected final Map<String, Class> knownClasses

    - #### protected static final SunClassLoader sunVM

  - ### Constructor Detail

    - #### protected SunClassLoader()

  - ### Method Detail

    - #### protected void define(byte[] bytes, String name)

    - #### public Class doesKnow(String name)

    - #### protected Class loadClass(String name, boolean resolve)

    - #### protected void loadFromRes(String name)

    - #### protected static String resName(String s)