Package io.github.mmm.code.impl.java
Class 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,BaseContext,BaseProvider,BaseLoader,AutoCloseable
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 io.github.mmm.code.impl.java.JavaContext
JavaContext.JavaClassLoader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JavaRootContextget()getBooleanType(boolean primitive) io.github.mmm.code.api.language.CodeLanguageprotected BaseLoadergetNonPrimitiveType(BaseType javaType) getQualifiedNameForStandardType(String simpleName, boolean omitStandardPackages) Methods inherited from class io.github.mmm.code.impl.java.JavaContext
getType, getTypeFromCacheMethods inherited from class io.github.mmm.code.base.AbstractBaseContextWithCache
close, createCache, getOrCreateSource, getOrCreateSource, getOrCreateSource, getOrCreateType, getSource, getType, getType, getType, isPreventRegisterSourceMethods inherited from class io.github.mmm.code.base.AbstractBaseContext
createChildContext, getContext, getSourceMethods inherited from class io.github.mmm.code.base.AbstractBaseProvider
getRequiredTypeMethods inherited from class io.github.mmm.code.base.node.BaseNodeItemContainerAccess
addContainerItemMethods inherited from class io.github.mmm.code.base.BasePathElementAccess
addPathElementInternal, getPackageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.mmm.code.base.BaseProvider
getRequiredTypeMethods inherited from interface io.github.mmm.code.api.CodeContext
getQualifiedName, getQualifiedNameMethods inherited from interface io.github.mmm.code.api.CodeProvider
parseName
-
Constructor Details
-
JavaRootContext
The constructor.- Parameters:
source- the toplevelsource.
-
-
Method Details
-
getParent
- Specified by:
getParentin interfaceBaseContext- Specified by:
getParentin interfaceio.github.mmm.code.api.CodeContext- Specified by:
getParentin interfaceio.github.mmm.code.api.node.CodeNode- Specified by:
getParentin classAbstractBaseContext
-
getRootContext
- Specified by:
getRootContextin interfaceBaseContext- Specified by:
getRootContextin classJavaContext- Returns:
- the root
contextresponsible for the fundamental code (from JDK).
-
getLoader
- Specified by:
getLoaderin classAbstractBaseContextWithCache
-
getClassLoader
- Specified by:
getClassLoaderin classJavaContext- Returns:
- the
ClassLoaderused by this context to load byte-code.
-
getLanguage
public io.github.mmm.code.api.language.CodeLanguage getLanguage()- Specified by:
getLanguagein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getLanguagein classAbstractBaseContext
-
getRootType
- Specified by:
getRootTypein interfaceBaseContext- Specified by:
getRootTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getRootTypein classAbstractBaseContext
-
getRootEnumerationType
- Specified by:
getRootEnumerationTypein interfaceBaseContext- Specified by:
getRootEnumerationTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getRootEnumerationTypein classAbstractBaseContext
-
getRootExceptionType
- Specified by:
getRootExceptionTypein interfaceBaseContext- Specified by:
getRootExceptionTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getRootExceptionTypein classAbstractBaseContext
-
getVoidType
- Specified by:
getVoidTypein interfaceBaseContext- Specified by:
getVoidTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getVoidTypein classAbstractBaseContext
-
getBooleanType
- Specified by:
getBooleanTypein interfaceBaseContext- Specified by:
getBooleanTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getBooleanTypein classAbstractBaseContext
-
getUnboundedWildcard
- Specified by:
getUnboundedWildcardin interfaceBaseContext- Specified by:
getUnboundedWildcardin interfaceio.github.mmm.code.api.CodeContext- Overrides:
getUnboundedWildcardin classAbstractBaseContext
-
getNonPrimitiveType
- Specified by:
getNonPrimitiveTypein interfaceBaseContext- Overrides:
getNonPrimitiveTypein classAbstractBaseContext
-
getQualifiedNameForStandardType
- Specified by:
getQualifiedNameForStandardTypein interfaceio.github.mmm.code.api.CodeContext- Overrides:
getQualifiedNameForStandardTypein classAbstractBaseContext
-
getFactory
- Specified by:
getFactoryin interfaceBaseContext- Specified by:
getFactoryin interfaceio.github.mmm.code.api.CodeContext- Overrides:
getFactoryin classAbstractBaseContext
-
get
- Returns:
- the default instance of this class.
-