Class JavaRootContext

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.JavaRootContext
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 JavaRootContext extends JavaContext
Implementation of JavaContext for the root 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
    JavaRootContext(io.github.mmm.code.base.source.BaseSourceImpl source)
    The constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
    io.github.mmm.code.base.type.BaseType
    getBooleanType(boolean primitive)
     
     
     
    io.github.mmm.code.api.language.CodeLanguage
     
    protected io.github.mmm.code.base.loader.BaseLoader
     
    io.github.mmm.code.base.type.BaseType
    getNonPrimitiveType(io.github.mmm.code.base.type.BaseType javaType)
     
     
    getQualifiedNameForStandardType(String simpleName, boolean omitStandardPackages)
     
     
    io.github.mmm.code.base.type.BaseType
     
    io.github.mmm.code.base.type.BaseType
     
    io.github.mmm.code.base.type.BaseType
     
    io.github.mmm.code.base.type.BaseTypeWildcard
     
    io.github.mmm.code.base.type.BaseType
     

    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, getContext, getSource

    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

    • JavaRootContext

      public JavaRootContext(io.github.mmm.code.base.source.BaseSourceImpl source)
      The constructor.
      Parameters:
      source - the toplevel source.
  • Method Details

    • 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).
    • getLoader

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

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

      public io.github.mmm.code.api.language.CodeLanguage getLanguage()
      Specified by:
      getLanguage in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getLanguage in class io.github.mmm.code.base.AbstractBaseContext
    • getRootType

      public io.github.mmm.code.base.type.BaseType getRootType()
      Specified by:
      getRootType in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getRootType in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getRootType in class io.github.mmm.code.base.AbstractBaseContext
    • getRootEnumerationType

      public io.github.mmm.code.base.type.BaseType getRootEnumerationType()
      Specified by:
      getRootEnumerationType in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getRootEnumerationType in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getRootEnumerationType in class io.github.mmm.code.base.AbstractBaseContext
    • getRootExceptionType

      public io.github.mmm.code.base.type.BaseType getRootExceptionType()
      Specified by:
      getRootExceptionType in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getRootExceptionType in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getRootExceptionType in class io.github.mmm.code.base.AbstractBaseContext
    • getVoidType

      public io.github.mmm.code.base.type.BaseType getVoidType()
      Specified by:
      getVoidType in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getVoidType in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getVoidType in class io.github.mmm.code.base.AbstractBaseContext
    • getBooleanType

      public io.github.mmm.code.base.type.BaseType getBooleanType(boolean primitive)
      Specified by:
      getBooleanType in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getBooleanType in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getBooleanType in class io.github.mmm.code.base.AbstractBaseContext
    • getUnboundedWildcard

      public io.github.mmm.code.base.type.BaseTypeWildcard getUnboundedWildcard()
      Specified by:
      getUnboundedWildcard in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getUnboundedWildcard in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getUnboundedWildcard in class io.github.mmm.code.base.AbstractBaseContext
    • getNonPrimitiveType

      public io.github.mmm.code.base.type.BaseType getNonPrimitiveType(io.github.mmm.code.base.type.BaseType javaType)
      Specified by:
      getNonPrimitiveType in interface io.github.mmm.code.base.BaseContext
      Overrides:
      getNonPrimitiveType in class io.github.mmm.code.base.AbstractBaseContext
    • getQualifiedNameForStandardType

      public String getQualifiedNameForStandardType(String simpleName, boolean omitStandardPackages)
      Specified by:
      getQualifiedNameForStandardType in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getQualifiedNameForStandardType in class io.github.mmm.code.base.AbstractBaseContext
    • getFactory

      public JavaFactory getFactory()
      Specified by:
      getFactory in interface io.github.mmm.code.base.BaseContext
      Specified by:
      getFactory in interface io.github.mmm.code.api.CodeContext
      Overrides:
      getFactory in class io.github.mmm.code.base.AbstractBaseContext
    • get

      public static JavaRootContext get()
      Returns:
      the default instance of this class.