Class JavaExtendedContext

java.lang.Object
io.github.mmm.code.base.BasePathElementAccess
io.github.mmm.code.base.node.BaseNodeItemContainerAccess
io.github.mmm.code.base.AbstractBaseProvider
io.github.mmm.code.base.AbstractBaseContext
io.github.mmm.code.base.AbstractBaseContextWithCache
io.github.mmm.code.impl.java.JavaContext
io.github.mmm.code.impl.java.JavaExtendedContext
All Implemented Interfaces:
io.github.mmm.code.api.CodeContext, io.github.mmm.code.api.CodeLoader, io.github.mmm.code.api.CodeProvider, io.github.mmm.code.api.CodeWithContext, io.github.mmm.code.api.node.CodeNode, io.github.mmm.code.base.BaseContext, io.github.mmm.code.base.BaseProvider, io.github.mmm.code.base.loader.BaseLoader, AutoCloseable

public class JavaExtendedContext extends JavaContext
Implementation of JavaContext that inherits from a parent context.
Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
  • Nested Class Summary

    Nested classes/interfaces inherited from class JavaContext

    JavaContext.JavaClassLoader
  • Constructor Summary

    Constructors
    Constructor
    Description
    JavaExtendedContext(io.github.mmm.code.base.source.BaseSourceImpl source, io.github.mmm.code.base.source.BaseSourceProvider sourceProvider, ClassLoader classLoader)
    The constructor.
    JavaExtendedContext(JavaContext parent, io.github.mmm.code.base.source.BaseSourceImpl source, io.github.mmm.code.base.source.BaseSourceProvider sourceProvider)
    The constructor.
    JavaExtendedContext(JavaContext parent, io.github.mmm.code.base.source.BaseSourceImpl source, io.github.mmm.code.base.source.BaseSourceProvider sourceProvider, ClassLoader classLoader)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    io.github.mmm.code.base.loader.BaseLoader
     
     
     

    Methods inherited from class JavaContext

    getType, getTypeFromCache

    Methods inherited from class io.github.mmm.code.base.AbstractBaseContextWithCache

    close, createCache, getOrCreateSource, getOrCreateSource, getOrCreateSource, getOrCreateType, getSource, getType, getType, getType, isPreventRegisterSource

    Methods inherited from class io.github.mmm.code.base.AbstractBaseContext

    createChildContext, getBooleanType, getContext, getFactory, getLanguage, getNonPrimitiveType, getQualifiedNameForStandardType, getRootEnumerationType, getRootExceptionType, getRootType, getSource, getUnboundedWildcard, getVoidType

    Methods inherited from class io.github.mmm.code.base.AbstractBaseProvider

    getRequiredType

    Methods inherited from class io.github.mmm.code.base.node.BaseNodeItemContainerAccess

    addContainerItem

    Methods inherited from class io.github.mmm.code.base.BasePathElementAccess

    addPathElementInternal, getPackage

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.github.mmm.code.base.BaseProvider

    getRequiredType

    Methods inherited from interface io.github.mmm.code.api.CodeContext

    getQualifiedName, getQualifiedName

    Methods inherited from interface io.github.mmm.code.api.CodeProvider

    parseName
  • Constructor Details

    • JavaExtendedContext

      public JavaExtendedContext(io.github.mmm.code.base.source.BaseSourceImpl source, io.github.mmm.code.base.source.BaseSourceProvider sourceProvider, ClassLoader classLoader)
      The constructor.
      Parameters:
      source - the source.
      sourceProvider - the BaseSourceProvider.
      classLoader - the explicit ClassLoader used to load the byte-code.
    • JavaExtendedContext

      public JavaExtendedContext(JavaContext parent, io.github.mmm.code.base.source.BaseSourceImpl source, io.github.mmm.code.base.source.BaseSourceProvider sourceProvider, ClassLoader classLoader)
      The constructor.
      Parameters:
      parent - the parent context.
      source - the source.
      sourceProvider - the BaseSourceProvider.
      classLoader - the explicit ClassLoader used to load the byte-code.
    • JavaExtendedContext

      public JavaExtendedContext(JavaContext parent, io.github.mmm.code.base.source.BaseSourceImpl source, io.github.mmm.code.base.source.BaseSourceProvider sourceProvider)
      The constructor.
      Parameters:
      parent - the parent context.
      source - the source.
      sourceProvider - the BaseSourceProvider.
  • Method Details

    • getLoader

      public io.github.mmm.code.base.loader.BaseLoader getLoader()
      Specified by:
      getLoader in class io.github.mmm.code.base.AbstractBaseContextWithCache
    • getParent

      public JavaContext getParent()
      Specified by:
      getParent in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getParent in interface io.github.mmm.code.api.CodeContext
      Specified by:
      getParent in interface io.github.mmm.code.api.node.CodeNode
      Specified by:
      getParent in class io.github.mmm.code.base.AbstractBaseContext
    • getRootContext

      public JavaRootContext getRootContext()
      Specified by:
      getRootContext in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getRootContext in class JavaContext
      Returns:
      the root context responsible for the fundamental code (from JDK).
    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in class JavaContext
      Returns:
      the ClassLoader used by this context to load byte-code.