Class JavaContext.JavaClassLoader

java.lang.Object
io.github.mmm.code.impl.java.JavaContext.JavaClassLoader
All Implemented Interfaces:
io.github.mmm.code.api.CodeLoader, io.github.mmm.code.api.CodeWithContext, BaseLoader
Enclosing class:
JavaContext

protected class JavaContext.JavaClassLoader extends Object implements BaseLoader
Implementation of BaseLoader to load classes from byte-code.
See Also:
  • Constructor Details

    • JavaClassLoader

      public JavaClassLoader()
      The constructor.
    • JavaClassLoader

      public JavaClassLoader(ClassLoader classloader)
      The constructor.
      Parameters:
      classloader - the explicit ClassLoader to use.
  • Method Details

    • getSource

      public BaseSource getSource()
      Specified by:
      getSource in interface BaseLoader
      Specified by:
      getSource in interface io.github.mmm.code.api.CodeWithContext
    • getContext

      public BaseContext getContext()
      Specified by:
      getContext in interface BaseLoader
      Specified by:
      getContext in interface io.github.mmm.code.api.CodeWithContext
    • getClassLoader

      public ClassLoader getClassLoader()
      Returns:
      the ClassLoader used to load byte-code.
    • getType

      public BaseType getType(String qualifiedName)
      Specified by:
      getType in interface BaseLoader
      Specified by:
      getType in interface io.github.mmm.code.api.CodeLoader
    • getType

      public BaseType getType(io.github.mmm.code.api.CodeName qualifiedName)
      Specified by:
      getType in interface BaseLoader
      Specified by:
      getType in interface io.github.mmm.code.api.CodeLoader
    • getType

      public BaseGenericType getType(Class<?> clazz)
      Specified by:
      getType in interface BaseLoader
      Specified by:
      getType in interface io.github.mmm.code.api.CodeLoader